mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-01 22:02:08 +02:00
Remove newlines from log messages
This commit is contained in:
committed by
Sam Lantinga
parent
17625e20df
commit
718034f5fa
@@ -935,7 +935,7 @@ static void RAWINPUT_AddDevice(HANDLE hDevice)
|
||||
device->joystick_id = SDL_GetNextObjectID();
|
||||
|
||||
#ifdef DEBUG_RAWINPUT
|
||||
SDL_Log("Adding RAWINPUT device '%s' VID 0x%.4x, PID 0x%.4x, version %d, handle 0x%.8x\n", device->name, device->vendor_id, device->product_id, device->version, device->hDevice);
|
||||
SDL_Log("Adding RAWINPUT device '%s' VID 0x%.4x, PID 0x%.4x, version %d, handle 0x%.8x", device->name, device->vendor_id, device->product_id, device->version, device->hDevice);
|
||||
#endif
|
||||
|
||||
// Add it to the list
|
||||
@@ -985,7 +985,7 @@ static void RAWINPUT_DelDevice(SDL_RAWINPUT_Device *device, bool send_event)
|
||||
SDL_PrivateJoystickRemoved(device->joystick_id);
|
||||
|
||||
#ifdef DEBUG_RAWINPUT
|
||||
SDL_Log("Removing RAWINPUT device '%s' VID 0x%.4x, PID 0x%.4x, version %d, handle %p\n", device->name, device->vendor_id, device->product_id, device->version, device->hDevice);
|
||||
SDL_Log("Removing RAWINPUT device '%s' VID 0x%.4x, PID 0x%.4x, version %d, handle %p", device->name, device->vendor_id, device->product_id, device->version, device->hDevice);
|
||||
#endif
|
||||
RAWINPUT_ReleaseDevice(device);
|
||||
return;
|
||||
@@ -1779,7 +1779,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
||||
triggers for a frame. */
|
||||
if (ctx->wgi_uncorrelate_count >= 5) {
|
||||
#ifdef DEBUG_RAWINPUT
|
||||
SDL_Log("UN-Correlated joystick %d to WindowsGamingInput device #%d\n", joystick->instance_id, ctx->wgi_slot);
|
||||
SDL_Log("UN-Correlated joystick %d to WindowsGamingInput device #%d", joystick->instance_id, ctx->wgi_slot);
|
||||
#endif
|
||||
RAWINPUT_MarkWindowsGamingInputSlotFree(ctx->wgi_slot);
|
||||
ctx->wgi_correlated = false;
|
||||
@@ -1811,7 +1811,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
||||
// correlation stayed steady and uncontested across multiple frames, guaranteed match
|
||||
ctx->wgi_correlated = true;
|
||||
#ifdef DEBUG_RAWINPUT
|
||||
SDL_Log("Correlated joystick %d to WindowsGamingInput device #%d\n", joystick->instance_id, slot_idx);
|
||||
SDL_Log("Correlated joystick %d to WindowsGamingInput device #%d", joystick->instance_id, slot_idx);
|
||||
#endif
|
||||
correlated = true;
|
||||
RAWINPUT_MarkWindowsGamingInputSlotUsed(ctx->wgi_slot, ctx);
|
||||
@@ -1875,7 +1875,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
||||
triggers for a frame. */
|
||||
if (ctx->xinput_uncorrelate_count >= 5) {
|
||||
#ifdef DEBUG_RAWINPUT
|
||||
SDL_Log("UN-Correlated joystick %d to XInput device #%d\n", joystick->instance_id, ctx->xinput_slot);
|
||||
SDL_Log("UN-Correlated joystick %d to XInput device #%d", joystick->instance_id, ctx->xinput_slot);
|
||||
#endif
|
||||
RAWINPUT_MarkXInputSlotFree(ctx->xinput_slot);
|
||||
ctx->xinput_correlated = false;
|
||||
@@ -1907,7 +1907,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
||||
// correlation stayed steady and uncontested across multiple frames, guaranteed match
|
||||
ctx->xinput_correlated = true;
|
||||
#ifdef DEBUG_RAWINPUT
|
||||
SDL_Log("Correlated joystick %d to XInput device #%d\n", joystick->instance_id, slot_idx);
|
||||
SDL_Log("Correlated joystick %d to XInput device #%d", joystick->instance_id, slot_idx);
|
||||
#endif
|
||||
correlated = true;
|
||||
RAWINPUT_MarkXInputSlotUsed(ctx->xinput_slot);
|
||||
|
||||
Reference in New Issue
Block a user