Skip to content

Commit edb9e79

Browse files
committed
fix compiling with debug output on
1 parent 5f923a6 commit edb9e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/hidapi/SDL_hidapi_sinput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static bool RetrieveSDLFeatures(SDL_HIDAPI_Device *device)
390390
}
391391

392392
#ifdef DEBUG_SINPUT_PROTOCOL
393-
HIDAPI_DumpPacket("SInput packet: size = %d", data, size);
393+
HIDAPI_DumpPacket("SInput packet: size = %d", data, sizeof(data));
394394
#endif
395395

396396
if ((read == USB_PACKET_LENGTH) && (data[0] == SINPUT_DEVICE_REPORT_ID_INPUT_CMDDAT) && (data[1] == SINPUT_DEVICE_COMMAND_FEATURES)) {

0 commit comments

Comments
 (0)