diff options
Diffstat (limited to 'ubi-utils/src/ubirename.c')
-rw-r--r-- | ubi-utils/src/ubirename.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ubi-utils/src/ubirename.c b/ubi-utils/src/ubirename.c index 08b3cd5..00c53e4 100644 --- a/ubi-utils/src/ubirename.c +++ b/ubi-utils/src/ubirename.c @@ -105,7 +105,10 @@ int main(int argc, char * const argv[]) node); goto out_libubi; } else if (err < 0) { - errmsg("\"%s\" is not an UBI device node", node); + if (errno == ENODEV) + errmsg("\"%s\" is not an UBI device node", node); + else + sys_errmsg("error while probing \"%s\"", node); goto out_libubi; } |