浏览代码

testcontroller.c: fix build errors due to -Wformat after commit b524af1

Ozkan Sezer 6 月之前
父节点
当前提交
307dac97ac
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/testcontroller.c

+ 2 - 2
test/testcontroller.c

@@ -1019,7 +1019,7 @@ static void HandleGamepadAdded(SDL_JoystickID id, bool verbose)
     if (i < 0) {
         return;
     }
-    SDL_Log("Gamepad %u added\n", id);
+    SDL_Log("Gamepad %" SDL_PRIu32 " added\n", id);
 
     SDL_assert(!controllers[i].gamepad);
     controllers[i].gamepad = SDL_OpenGamepad(id);
@@ -1091,7 +1091,7 @@ static void HandleGamepadRemoved(SDL_JoystickID id)
     if (i < 0) {
         return;
     }
-    SDL_Log("Gamepad %u removed\n", id);
+    SDL_Log("Gamepad %" SDL_PRIu32 " removed\n", id);
 
     if (controllers[i].mapping) {
         SDL_free(controllers[i].mapping);