From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Sun, 06 Sep 2009 08:19:59 -0500 Subject: [U-Boot] [PATCH 2/8] USB add macros for debugging usb device setup. In-Reply-To: <20090905003121.GE30118@game.jcrosoft.org> References: <1252095170-5492-1-git-send-email-Tom.Rix@windriver.com> <1252095170-5492-2-git-send-email-Tom.Rix@windriver.com> <20090905003121.GE30118@game.jcrosoft.org> Message-ID: <4AA3B6FF.5050502@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jean-Christophe PLAGNIOL-VILLARD wrote: > On 15:12 Fri 04 Sep , Tom Rix wrote: > >> When developing usb device features, it is useful to print out >> common usb structures. >> >> Signed-off-by: Tom Rix >> --- >> include/usbdescriptors.h | 31 +++++++++++++ >> include/usbdevice.h | 105 ++++++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 136 insertions(+), 0 deletions(-) >> >> diff --git a/include/usbdescriptors.h b/include/usbdescriptors.h >> index ea05672..f4e33b6 100644 >> --- a/include/usbdescriptors.h >> +++ b/include/usbdescriptors.h >> @@ -510,4 +510,35 @@ struct usb_class_descriptor { >> >> } __attribute__ ((packed)); >> >> +#ifdef DEBUG >> +#define PRINT_DEVICE_DESCRIPTOR(d) \ >> > inline will be better > Yes. I agree. Tom > Best Regards, > J. >