From 27c2b56c5e19291281488636469777ecd828f21c Mon Sep 17 00:00:00 2001 From: Lionel Debroux Date: Sat, 26 Apr 2008 13:56:34 +0200 Subject: [PATCH] dinput: joystick test: Improve reporting when enumerated axes/buttons/POVs don't match capabilities. --- dlls/dinput/tests/joystick.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/dinput/tests/joystick.c b/dlls/dinput/tests/joystick.c index 61d14262687..d8c05f000bd 100644 --- a/dlls/dinput/tests/joystick.c +++ b/dlls/dinput/tests/joystick.c @@ -274,9 +274,9 @@ static BOOL CALLBACK EnumJoysticks( ok(hr==DI_OK,"IDirectInputDevice_EnumObjects() failed: %s\n", DXGetErrorString8(hr)); - ok(caps.dwAxes == info.axis, "Number of enumerated axes doesn't match capabilities\n"); - ok(caps.dwButtons == info.button, "Number of enumerated buttons doesn't match capabilities\n"); - ok(caps.dwPOVs == info.pov, "Number of enumerated POVs doesn't match capabilities\n"); + ok(caps.dwAxes == info.axis, "Number of enumerated axes (%d) doesn't match capabilities (%d)\n", info.axis, caps.dwAxes); + ok(caps.dwButtons == info.button, "Number of enumerated buttons (%d) doesn't match capabilities (%d)\n", info.button, caps.dwButtons); + ok(caps.dwPOVs == info.pov, "Number of enumerated POVs (%d) doesn't match capabilities (%d)\n", info.pov, caps.dwPOVs); /* Set format and check limits again */ hr = IDirectInputDevice_SetDataFormat(pJoystick, &c_dfDIJoystick2);