util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] losetup: print verbose messages if requested
@ 2011-09-30 10:05 Petr Uzel
  2011-09-30 10:05 ` [PATCH 2/2] losetup: new -D option to delete all used loop devices Petr Uzel
  2011-10-03 13:51 ` [PATCH 1/2] losetup: print verbose messages if requested Karel Zak
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Uzel @ 2011-09-30 10:05 UTC (permalink / raw)
  To: util-linux

verbose can't be > 1

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-03 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-30 10:05 [PATCH 1/2] losetup: print verbose messages if requested Petr Uzel
2011-09-30 10:05 ` [PATCH 2/2] losetup: new -D option to delete all used loop devices Petr Uzel
2011-10-03 13:52   ` Karel Zak
2011-10-03 13:51 ` [PATCH 1/2] losetup: print verbose messages if requested Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).