summaryrefslogtreecommitdiff
path: root/ubi-utils/ubinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/ubinfo.c')
-rw-r--r--ubi-utils/ubinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ubi-utils/ubinfo.c b/ubi-utils/ubinfo.c
index 7aa4aa4..cb88f53 100644
--- a/ubi-utils/ubinfo.c
+++ b/ubi-utils/ubinfo.c
@@ -362,6 +362,8 @@ static int print_general_info(libubi_t libubi, int all)
for (i = ubi_info.lowest_dev_num;
i <= ubi_info.highest_dev_num; i++) {
+ if (!ubi_dev_present(libubi, i))
+ continue;
if(!first)
printf("\n===================================\n\n");
first = 0;