mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 08:07:59 +00:00
USB, Storage: fix a bug introduced in commit
f6b44e0e4d
that will cause usb_stor_info
to only print only information on one storage device, but not for
multiple.
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
This commit is contained in:
parent
841e5edd16
commit
b9e749e953
1 changed files with 4 additions and 4 deletions
|
@ -196,13 +196,13 @@ int usb_stor_info(void)
|
||||||
for (i = 0; i < usb_max_devs; i++) {
|
for (i = 0; i < usb_max_devs; i++) {
|
||||||
printf (" Device %d: ", i);
|
printf (" Device %d: ", i);
|
||||||
dev_print(&usb_dev_desc[i]);
|
dev_print(&usb_dev_desc[i]);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
printf("No storage devices, perhaps not 'usb start'ed..?\n");
|
printf("No storage devices, perhaps not 'usb start'ed..?\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* scan the usb and reports device info
|
* scan the usb and reports device info
|
||||||
|
|
Loading…
Add table
Reference in a new issue