[PATCH 0/2] MR1496: winebus.sys: Add more trace messages.
From: Rémi Bernon <rbernon(a)codeweavers.com> --- dlls/hidclass.sys/device.c | 2 ++ dlls/hidclass.sys/pnp.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c index 7c0dbdcbc10..ac201afeddf 100644 --- a/dlls/hidclass.sys/device.c +++ b/dlls/hidclass.sys/device.c @@ -229,6 +229,8 @@ static void hid_device_queue_input( DEVICE_OBJECT *device, HID_XFER_PACKET *pack KIRQL irql; IRP *irp; + TRACE("device %p, packet %p\n", device, packet); + if (IsEqualGUID( ext->class_guid, &GUID_DEVINTERFACE_HID )) { size = offsetof( RAWINPUT, data.hid.bRawData[report_len] ); diff --git a/dlls/hidclass.sys/pnp.c b/dlls/hidclass.sys/pnp.c index 91624b40eff..46b6e803465 100644 --- a/dlls/hidclass.sys/pnp.c +++ b/dlls/hidclass.sys/pnp.c @@ -117,6 +117,8 @@ static void send_wm_input_device_change(BASE_DEVICE_EXTENSION *ext, LPARAM param RAWINPUT rawinput; INPUT input; + TRACE("ext %p, lparam %p\n", ext, (void *)param); + if (!IsEqualGUID( ext->class_guid, &GUID_DEVINTERFACE_HID )) return; rawinput.header.dwType = RIM_TYPEHID; @@ -298,6 +300,8 @@ static void create_child(minidriver *minidriver, DEVICE_OBJECT *fdo) HID_StartDeviceThread(child_pdo); send_wm_input_device_change(pdo_ext, GIDC_ARRIVAL); + + TRACE( "created device %p, rawinput handle %#x\n", pdo_ext, pdo_ext->u.pdo.rawinput_handle ); } static NTSTATUS fdo_pnp(DEVICE_OBJECT *device, IRP *irp) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1496
From: Rémi Bernon <rbernon(a)codeweavers.com> --- dlls/winebus.sys/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c index 1037295c955..35f84bd9e29 100644 --- a/dlls/winebus.sys/main.c +++ b/dlls/winebus.sys/main.c @@ -322,6 +322,8 @@ static DEVICE_OBJECT *bus_create_hid_device(struct device_desc *desc, UINT64 uni list_add_tail(&device_list, &ext->entry); RtlLeaveCriticalSection(&device_list_cs); + + TRACE("created device %p/%#I64x\n", device, unix_device); return device; } @@ -415,7 +417,7 @@ static BOOL deliver_next_report(struct device_extension *ext, IRP *irp) if (TRACE_ON(hid)) { - TRACE("read input report length %lu:\n", report->length); + TRACE("device %p/%#I64x input report length %lu:\n", ext->device, ext->unix_device, report->length); for (i = 0; i < report->length;) { char buffer[256], *buf = buffer; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1496
participants (1)
-
Rémi Bernon