From be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 12 Jul 2000 17:02:35 +0000 Subject: Always report the applet name when doing error reporting. --- util-linux/freeramdisk.c | 4 ++-- util-linux/mount.c | 2 +- util-linux/umount.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'util-linux') diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index a6fa2431f..927c16946 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -52,10 +52,10 @@ freeramdisk_main(int argc, char **argv) } if ((f = open(argv[1], O_RDWR)) == -1) { - fatalError( "freeramdisk: cannot open %s: %s\n", argv[1], strerror(errno)); + fatalError( "cannot open %s: %s\n", argv[1], strerror(errno)); } if (ioctl(f, BLKFLSBUF) < 0) { - fatalError( "freeramdisk: failed ioctl on %s: %s\n", argv[1], strerror(errno)); + fatalError( "failed ioctl on %s: %s\n", argv[1], strerror(errno)); } /* Don't bother closing. Exit does * that, so we can save a few bytes */ diff --git a/util-linux/mount.c b/util-linux/mount.c index 66599a618..900ab30a7 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -193,7 +193,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype, #endif if (errno == EPERM) { - fatalError("mount: permission denied. Are you root?\n"); + fatalError("permission denied. Are you root?\n"); } return (FALSE); diff --git a/util-linux/umount.c b/util-linux/umount.c index fc9b466c6..59dcb6651 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -201,7 +201,7 @@ static int do_umount(const char *name, int useMtab) if (status != 0 && doForce == TRUE) { status = umount2(blockDevice, MNT_FORCE); if (status != 0) { - fatalError("umount: forced umount of %s failed!\n", blockDevice); + fatalError("forced umount of %s failed!\n", blockDevice); } } #endif -- cgit v1.2.3