summaryrefslogtreecommitdiff
path: root/mount/mount_blkid.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:26:31 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:26:31 +0100
commit756bfd018eb393640dad490df1a1ca840d9ee79b (patch)
treed95fd02eefcc647d4886761ccb74e976ee7aa32a /mount/mount_blkid.c
parenta47f2e66141271cde40ee5190acf93d7878bc93d (diff)
downloadutil-linux-old-756bfd018eb393640dad490df1a1ca840d9ee79b.tar.gz
Imported from util-linux-2.12o tarball.
Diffstat (limited to 'mount/mount_blkid.c')
-rw-r--r--mount/mount_blkid.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mount/mount_blkid.c b/mount/mount_blkid.c
index 47c48b39..c485c913 100644
--- a/mount/mount_blkid.c
+++ b/mount/mount_blkid.c
@@ -74,6 +74,8 @@ mount_get_devname_by_uuid(const char *uuid) {
return get_spec_by_uuid(uuid);
}
+extern char *progname;
+
const char *
mount_get_devname_by_label(const char *volumelabel) {
const char *spec, *spec2;
@@ -82,9 +84,8 @@ mount_get_devname_by_label(const char *volumelabel) {
spec2 = second_occurrence_of_vol_label(volumelabel);
if (spec2)
die (EX_FAIL,
- _("mount: the label %s occurs on "
- "both %s and %s - not mounted\n"),
- volumelabel, spec, spec2);
+ _("%s: error: the label %s occurs on both %s and %s\n"),
+ progname, volumelabel, spec, spec2);
return spec;
}