summaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/ubinfo.c')
-rw-r--r--ubi-utils/src/ubinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubi-utils/src/ubinfo.c b/ubi-utils/src/ubinfo.c
index 025ac62..036ed6c 100644
--- a/ubi-utils/src/ubinfo.c
+++ b/ubi-utils/src/ubinfo.c
@@ -142,8 +142,8 @@ static int translate_dev(libubi_t libubi, const char *node)
err = ubi_probe_node(libubi, node);
if (err == -1) {
- if (errno)
- return errmsg("unrecognized device node \"%s\"", node);
+ if (errno != ENODEV)
+ return sys_errmsg("error while probing \"%s\"", node);
return errmsg("\"%s\" does not correspond to any UBI device or volume", node);
}