diff options
author | Karel Zak | 2012-05-28 11:36:59 +0200 |
---|---|---|
committer | Karel Zak | 2012-05-28 11:36:59 +0200 |
commit | cda4f8f10b174a6417443730af160ba484f6fcb2 (patch) | |
tree | 57b740a24ab48a11767098f236122bedb6ff22c1 /sys-utils/losetup.c | |
parent | tests: add UFS uuids to results (diff) | |
download | kernel-qcow2-util-linux-cda4f8f10b174a6417443730af160ba484f6fcb2.tar.gz kernel-qcow2-util-linux-cda4f8f10b174a6417443730af160ba484f6fcb2.tar.xz kernel-qcow2-util-linux-cda4f8f10b174a6417443730af160ba484f6fcb2.zip |
losetup: more verbose failed setup error mesage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r-- | sys-utils/losetup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 17838d842..4f44b9b14 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -372,7 +372,9 @@ int main(int argc, char **argv) if (res == 0) break; /* success */ if (errno != EBUSY) { - warn(_("failed to setup loop device")); + warn(_("%s: failed to setup loop device"), + hasdev && loopcxt_get_fd(&lc) < 0 ? + loopcxt_get_device(&lc) : file); break; } } while (hasdev == 0); |