projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash on sequoia in ppc_4xx_eth_init
[oweals/u-boot.git]
/
common
/
usb_storage.c
diff --git
a/common/usb_storage.c
b/common/usb_storage.c
index 443d78574abcef38671e7453f001b490ac62c56b..7c08f957752a34e7d8a973f3a2836093439a4be1 100644
(file)
--- a/
common/usb_storage.c
+++ b/
common/usb_storage.c
@@
-188,17
+188,20
@@
void usb_show_progress(void)
* show info on storage devices; 'usb start/init' must be invoked earlier
* as we only retrieve structures populated during devices initialization
*/
* show info on storage devices; 'usb start/init' must be invoked earlier
* as we only retrieve structures populated during devices initialization
*/
-
void
usb_stor_info(void)
+
int
usb_stor_info(void)
{
int i;
{
int i;
- if (usb_max_devs > 0)
+ if (usb_max_devs > 0)
{
for (i = 0; i < usb_max_devs; i++) {
printf (" Device %d: ", i);
dev_print(&usb_dev_desc[i]);
}
for (i = 0; i < usb_max_devs; i++) {
printf (" Device %d: ", i);
dev_print(&usb_dev_desc[i]);
}
- else
- printf("No storage devices, perhaps not 'usb start'ed..?\n");
+ return 0;
+ }
+
+ printf("No storage devices, perhaps not 'usb start'ed..?\n");
+ return 1;
}
/*********************************************************************************
}
/*********************************************************************************