From a97678e7f3a5af391ed1ff705abd061f2e7692ff Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 8 Oct 2008 20:16:44 +0000 Subject: [PATCH] Add more trace codes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@999 42af7a65-404d-4744-a932-0658087f49c3 --- drivers/usbdev/usbdev_trace.c | 10 +++++++++- include/nuttx/usbdev_trace.h | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/usbdev/usbdev_trace.c b/drivers/usbdev/usbdev_trace.c index 37cd7c1eb4..38614e7a8b 100644 --- a/drivers/usbdev/usbdev_trace.c +++ b/drivers/usbdev/usbdev_trace.c @@ -320,6 +320,14 @@ void usbtrace(uint16 event, uint16 value) lldbg("Class resume(): %04x\n", value); break; + case TRACE_CLASSRDCOMPLETE: + lldbg("Class RD request complete: %04x\n", value); + break; + + case TRACE_CLASSWRCOMPLETE: + lldbg("Class WR request complete: %04x\n", value); + break; + default: switch (TRACE_ID(event)) { @@ -369,7 +377,7 @@ void usbtrace(uint16 event, uint16 value) default: lldbg("Unrecognized event: %02x:%02x:%04x\n", - TRACE_ID(event), TRACE_DATA(event), value); + TRACE_ID(event) >> 8, TRACE_DATA(event), value); break; } } diff --git a/include/nuttx/usbdev_trace.h b/include/nuttx/usbdev_trace.h index 74e95078a7..5868351368 100644 --- a/include/nuttx/usbdev_trace.h +++ b/include/nuttx/usbdev_trace.h @@ -109,6 +109,9 @@ #define TRACE_CLASSSUSPEND TRACE_EVENT(TRACE_CLASS_ID, 0x0005) #define TRACE_CLASSRESUME TRACE_EVENT(TRACE_CLASS_ID, 0x0006) +#define TRACE_CLASSRDCOMPLETE TRACE_EVENT(TRACE_CLASS_ID, 0x0007) +#define TRACE_CLASSWRCOMPLETE TRACE_EVENT(TRACE_CLASS_ID, 0x0008) + #define TRACE_CLASSAPI(id) TRACE_EVENT(TRACE_CLASSAPI_ID, id) /* USB device controller interrupt events. The 'id' is specific to the driver. @@ -120,7 +123,7 @@ #define TRACE_INTDECODE(id) TRACE_EVENT(TRACE_INTDECODE_ID, id) #define TRACE_INTEXIT(id) TRACE_EVENT(TRACE_INTEXIT_ID, id) -/* Data Transfer */ +/* Controller data transfer */ #define TRACE_OUTREQQUEUED(ep) TRACE_EVENT(TRACE_OUTREQQUEUED_ID, ep) #define TRACE_INREQQUEUED(ep) TRACE_EVENT(TRACE_INREQQUEUED_ID, ep)