diff options
author | Petr Uzel | 2011-09-22 12:12:37 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-27 15:46:07 +0200 |
commit | 960cf5737e58c03b0d29797c0d4bd3461f1fdeff (patch) | |
tree | 10cc302358d2ffa6673010b3e8cebbb924570ab6 /mount/lomount.c | |
parent | docs: update TODO (diff) | |
download | kernel-qcow2-util-linux-960cf5737e58c03b0d29797c0d4bd3461f1fdeff.tar.gz kernel-qcow2-util-linux-960cf5737e58c03b0d29797c0d4bd3461f1fdeff.tar.xz kernel-qcow2-util-linux-960cf5737e58c03b0d29797c0d4bd3461f1fdeff.zip |
misc: use %m in format string instead of %s and strerror(errno)
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'mount/lomount.c')
-rw-r--r-- | mount/lomount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mount/lomount.c b/mount/lomount.c index 74a874929..ff99413e9 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -875,8 +875,7 @@ set_loop(const char *device, const char *file, unsigned long long offset, if (errno == EBUSY) { if (verbose) - printf(_("ioctl LOOP_SET_FD failed: %s\n"), - strerror(errno)); + printf(_("ioctl LOOP_SET_FD failed: %m\n")); rc = 2; } else perror("ioctl: LOOP_SET_FD"); |