projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubi: help message correction
[platform/kernel/u-boot.git]
/
disk
/
part.c
diff --git
a/disk/part.c
b/disk/part.c
index
c777493
..
b92fb45
100644
(file)
--- a/
disk/part.c
+++ b/
disk/part.c
@@
-114,6
+114,11
@@
void dev_print (block_dev_desc_t *dev_desc)
lbaint_t lba512;
#endif
+ if (dev_desc->type == DEV_TYPE_UNKNOWN) {
+ puts ("not available\n");
+ return;
+ }
+
switch (dev_desc->if_type) {
case IF_TYPE_SCSI:
printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n",