[U-Boot] [PATCH 2/8] USB add macros for debugging usb device setup.
Tom
Tom.Rix at windriver.com
Sun Sep 6 15:19:59 CEST 2009
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.Rix at 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.
>
More information about the U-Boot
mailing list