https://github.com/libsdl-org/SDL/commit/307dac97acc85d21367add64a347c21aa1701fa9
From 307dac97acc85d21367add64a347c21aa1701fa9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 12 Jan 2025 22:00:02 +0300
Subject: [PATCH] testcontroller.c: fix build errors due to -Wformat after
commit b524af1
---
test/testcontroller.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/testcontroller.c b/test/testcontroller.c
index bc228166cce66..4cf35c9d9a590 100644
--- a/test/testcontroller.c
+++ b/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);