* [U-Boot-Users] Statuc code format for USB response...
@ 2005-07-06 8:27 Neil Bryan
2005-07-06 8:57 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Neil Bryan @ 2005-07-06 8:27 UTC (permalink / raw)
To: u-boot
This is a trivial comment, but helpful for developers not expert in
debugging USB-related problems.
After issuing the following command:
U-Boot> usb reset
I obtained the following result:
USB device not responding, giving up (status=20)
The code responsible for this is in ./common/usb.c and
shown below:
printf("\n USB device not responding, giving up
(status=%lX)\n",dev->status);
I _believe_ the status code returned is that defined in
./include/usb_defs.h and that my status code of 20 is
the value defined by the macro USB_ST_CRC_ERR.
The printf uses a %lX format specifier and it would be improved
if it was proceeded with an '0x' to inform the developer (me)
that this is indeed a hexadecimal value. My suggested change is
In ./common/usb.c
--------------
- printf("\n USB device not responding, giving up
(status=%lX)\n",dev->status)
+ printf("\n USB device not responding, giving up
(status=0x%lX)\n",dev->status)
--------------
As I said, I know this is trivial, but every little bit of
extra information helps when debugging something that is
unfamiliar.
Flames and other comments gratefully received!
Regards,
Neil Bryan.
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot-Users] Statuc code format for USB response...
2005-07-06 8:27 [U-Boot-Users] Statuc code format for USB response Neil Bryan
@ 2005-07-06 8:57 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-07-06 8:57 UTC (permalink / raw)
To: u-boot
In message <1120638436.6064.32.camel@daroca> you wrote:
> This is a trivial comment, but helpful for developers not expert in
> debugging USB-related problems.
There are several serious problems with the existing USB code. We
have some patches in test which whill be checked in soon.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Name one thing windows is better than unix in?
Making money for Microsoft?
-- Randal L. Schwartz in <8cvi5t4c3t.fsf@gadget.cscaper.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-06 8:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-06 8:27 [U-Boot-Users] Statuc code format for USB response Neil Bryan
2005-07-06 8:57 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.