summaryrefslogtreecommitdiffstats
path: root/mount/lomount.c
diff options
context:
space:
mode:
authorPetr Uzel2011-09-30 12:05:25 +0200
committerKarel Zak2011-10-03 15:48:33 +0200
commitc6455a945c7fd2b423257e4f0727f437014b36ce (patch)
tree2084f5ea5e0c28dfc3002ab1c1f6a4a1dcbb4319 /mount/lomount.c
parentMerge branch 'sys-utils-again' of https://github.com/kerolasa/lelux-utiliteetit (diff)
downloadkernel-qcow2-util-linux-c6455a945c7fd2b423257e4f0727f437014b36ce.tar.gz
kernel-qcow2-util-linux-c6455a945c7fd2b423257e4f0727f437014b36ce.tar.xz
kernel-qcow2-util-linux-c6455a945c7fd2b423257e4f0727f437014b36ce.zip
losetup: print verbose messages if requested
verbose can't be > 1 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'mount/lomount.c')
-rw-r--r--mount/lomount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/lomount.c b/mount/lomount.c
index ff99413e9..441860b71 100644
--- a/mount/lomount.c
+++ b/mount/lomount.c
@@ -930,7 +930,7 @@ set_loop(const char *device, const char *file, unsigned long long offset,
if (!(*options & SETLOOP_AUTOCLEAR))
close (fd);
- if (verbose > 1)
+ if (verbose)
printf(_("set_loop(%s,%s,%llu,%llu): success\n"),
device, filename, offset, sizelimit);
if (file != filename)
@@ -951,7 +951,7 @@ del_loop (const char *device) {
goto error;
}
close (fd);
- if (verbose > 1)
+ if (verbose)
printf(_("del_loop(%s): success\n"), device);
return 0;