winebus.sys: Use +hid debug channel.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
10359e17ce
commit
5b735572c1
|
@ -97,7 +97,7 @@
|
|||
|
||||
#include "unix_private.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(hid);
|
||||
#ifdef HAVE_IOHIDMANAGERCREATE
|
||||
|
||||
static pthread_mutex_t iohid_cs = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
#include "unix_private.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(hid);
|
||||
|
||||
#ifdef SONAME_LIBSDL2
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
|
||||
#include "unix_private.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(hid);
|
||||
|
||||
#ifdef HAVE_UDEV
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include "unix_private.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(hid);
|
||||
|
||||
static BOOL hid_report_descriptor_append(struct hid_report_descriptor *desc, const BYTE *buffer, SIZE_T size)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
#include "unixlib.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(hid);
|
||||
|
||||
static DRIVER_OBJECT *driver_obj;
|
||||
|
||||
|
@ -411,7 +411,7 @@ static BOOL deliver_next_report(struct device_extension *ext, IRP *irp)
|
|||
irp->IoStatus.Information = report->length;
|
||||
irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
|
||||
if (TRACE_ON(plugplay))
|
||||
if (TRACE_ON(hid))
|
||||
{
|
||||
TRACE("read input report length %u:\n", report->length);
|
||||
for (i = 0; i < report->length;)
|
||||
|
@ -1038,7 +1038,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
|||
memcpy(packet->reportBuffer, ext->last_reports[packet->reportId], packet->reportBufferLen);
|
||||
irp->IoStatus.Information = packet->reportBufferLen;
|
||||
irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
if (TRACE_ON(plugplay))
|
||||
if (TRACE_ON(hid))
|
||||
{
|
||||
TRACE("read input report id %u length %u:\n", packet->reportId, packet->reportBufferLen);
|
||||
for (i = 0; i < packet->reportBufferLen;)
|
||||
|
@ -1068,7 +1068,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
|||
case IOCTL_HID_WRITE_REPORT:
|
||||
{
|
||||
HID_XFER_PACKET *packet = (HID_XFER_PACKET *)irp->UserBuffer;
|
||||
if (TRACE_ON(plugplay))
|
||||
if (TRACE_ON(hid))
|
||||
{
|
||||
TRACE("write output report id %u length %u:\n", packet->reportId, packet->reportBufferLen);
|
||||
for (i = 0; i < packet->reportBufferLen;)
|
||||
|
@ -1087,7 +1087,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
|||
{
|
||||
HID_XFER_PACKET *packet = (HID_XFER_PACKET *)irp->UserBuffer;
|
||||
unix_device_get_feature_report(device, packet, &irp->IoStatus);
|
||||
if (!irp->IoStatus.Status && TRACE_ON(plugplay))
|
||||
if (!irp->IoStatus.Status && TRACE_ON(hid))
|
||||
{
|
||||
TRACE("read feature report id %u length %u:\n", packet->reportId, packet->reportBufferLen);
|
||||
for (i = 0; i < packet->reportBufferLen;)
|
||||
|
@ -1104,7 +1104,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
|||
case IOCTL_HID_SET_FEATURE:
|
||||
{
|
||||
HID_XFER_PACKET *packet = (HID_XFER_PACKET *)irp->UserBuffer;
|
||||
if (TRACE_ON(plugplay))
|
||||
if (TRACE_ON(hid))
|
||||
{
|
||||
TRACE("write feature report id %u length %u:\n", packet->reportId, packet->reportBufferLen);
|
||||
for (i = 0; i < packet->reportBufferLen;)
|
||||
|
|
Loading…
Reference in New Issue