Lionel Debroux : dinput: Improve TRACEs and WARNs.
Alexandre Julliard
julliard at winehq.org
Wed Jan 2 07:34:47 CST 2008
Module: wine
Branch: master
Commit: efc81cb233538ba72198ea9b80b160abfa0e8ecc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=efc81cb233538ba72198ea9b80b160abfa0e8ecc
Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date: Sun Dec 30 19:03:34 2007 +0100
dinput: Improve TRACEs and WARNs.
---
dlls/dinput/joystick_linux.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c
index bb967b9..90f20d6 100644
--- a/dlls/dinput/joystick_linux.c
+++ b/dlls/dinput/joystick_linux.c
@@ -376,6 +376,8 @@ static HRESULT alloc_device(REFGUID rguid, const void *jvt, IDirectInputImpl *di
LPDIDATAFORMAT df = NULL;
int idx = 0;
+ TRACE("%s %p %p %p %hu\n", debugstr_guid(rguid), jvt, dinput, pdev, index);
+
newDevice = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(JoystickImpl));
if (newDevice == 0) {
WARN("out of memory\n");
@@ -552,6 +554,7 @@ static HRESULT joydev_create_deviceA(IDirectInputImpl *dinput, REFGUID rguid, RE
{
unsigned short index;
+ TRACE("%p %s %p %p\n",dinput, debugstr_guid(rguid), riid, pdev);
find_joystick_devices();
*pdev = NULL;
@@ -571,7 +574,7 @@ static HRESULT joydev_create_deviceA(IDirectInputImpl *dinput, REFGUID rguid, RE
return DIERR_NOINTERFACE;
}
- WARN("invalid device GUID\n");
+ WARN("invalid device GUID %s\n",debugstr_guid(rguid));
return DIERR_DEVICENOTREG;
}
@@ -579,6 +582,7 @@ static HRESULT joydev_create_deviceW(IDirectInputImpl *dinput, REFGUID rguid, RE
{
unsigned short index;
+ TRACE("%p %s %p %p\n",dinput, debugstr_guid(rguid), riid, pdev);
find_joystick_devices();
*pdev = NULL;
@@ -597,7 +601,7 @@ static HRESULT joydev_create_deviceW(IDirectInputImpl *dinput, REFGUID rguid, RE
return DIERR_NOINTERFACE;
}
- WARN("invalid device GUID\n");
+ WARN("invalid device GUID %s\n",debugstr_guid(rguid));
return DIERR_DEVICENOTREG;
}
More information about the wine-cvs
mailing list