[PATCH 1/2] losetup: print verbose messages if requested

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



verbose can't be > 1

Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx>
---
 mount/lomount.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mount/lomount.c b/mount/lomount.c
index ff99413..441860b 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;
 
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux