]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: print verbose messages if requested
authorPetr Uzel <petr.uzel@suse.cz>
Fri, 30 Sep 2011 10:05:25 +0000 (12:05 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Oct 2011 13:48:33 +0000 (15:48 +0200)
verbose can't be > 1

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
mount/lomount.c

index ff99413e90d28065e55438ca2e78f6a12c1ad009..441860b7113d3857e99490bd02ab6af8773b6ea0 100644 (file)
@@ -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;