From 0f9e551d7127e9d244b25bf8ceef63422f77cfc2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 17 Nov 2024 00:45:02 +0300 Subject: [PATCH] joystick/gdk/SDL_gameinputjoystick.c: fix build errors due to -Wformat --- src/joystick/gdk/SDL_gameinputjoystick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/gdk/SDL_gameinputjoystick.c b/src/joystick/gdk/SDL_gameinputjoystick.c index 1a510de590..13b5108240 100644 --- a/src/joystick/gdk/SDL_gameinputjoystick.c +++ b/src/joystick/gdk/SDL_gameinputjoystick.c @@ -261,7 +261,7 @@ static bool GAMEINPUT_JoystickInit(void) hR = GameInputCreateFunc(&g_pGameInput); if (FAILED(hR)) { - return SDL_SetError("GameInputCreate failure with HRESULT of %08X", hR); + return SDL_SetError("GameInputCreate failure with HRESULT of %08lX", hR); } } @@ -274,7 +274,7 @@ static bool GAMEINPUT_JoystickInit(void) GAMEINPUT_InternalJoystickDeviceCallback, &g_GameInputCallbackToken); if (FAILED(hR)) { - return SDL_SetError("IGameInput::RegisterDeviceCallback failure with HRESULT of %08X", hR); + return SDL_SetError("IGameInput::RegisterDeviceCallback failure with HRESULT of %08lX", hR); } // Calculate the relative offset between SDL timestamps and GameInput timestamps