Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-2444 build: fix 'error handling' issues
[fs/lustre-release.git]
/
lustre
/
utils
/
mount_utils.c
diff --git
a/lustre/utils/mount_utils.c
b/lustre/utils/mount_utils.c
index
b8e97c4
..
00e5d5c
100644
(file)
--- a/
lustre/utils/mount_utils.c
+++ b/
lustre/utils/mount_utils.c
@@
-339,7
+339,8
@@
int loop_setup(struct mkfs_opts *mop)
continue;
if (ret) {
fprintf(stderr, "%s: error %d on losetup: %s\n",
continue;
if (ret) {
fprintf(stderr, "%s: error %d on losetup: %s\n",
- progname, ret, strerror(ret));
+ progname, ret,
+ ret >= 0 ? strerror(ret) : "");
return ret;
}
strscpy(mop->mo_loopdev, l_device,
return ret;
}
strscpy(mop->mo_loopdev, l_device,