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 <tom....@windriver.com> >> --- >> 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. > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot