From: Karel Zak Date: Fri, 30 Sep 2011 09:26:07 +0000 (+0200) Subject: umount: add warning X-Git-Tag: v2.21-rc1~359 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f991d6b542a0d1c3d345006593a24d95609fc676;p=thirdparty%2Futil-linux.git umount: add warning It's better to inform users about reason why their request does not makes sense :-) Signed-off-by: Karel Zak --- diff --git a/mount/umount.c b/mount/umount.c index f29d7cafb8..ad93e757b0 100644 --- a/mount/umount.c +++ b/mount/umount.c @@ -652,9 +652,9 @@ try_loopdev: file = loopdev; goto try_loopdev; - } else if (count > 1 && verbose) - printf(_("%s is associated with more than one " - "loop device: not unmounting\n"), arg); + } else if (count > 1) + fprintf(stderr, _("umount: warning: %s is associated " + "with more than one loop device\n"), arg); } if (mc) {