Always report the applet name when doing error reporting.

This commit is contained in:
Matt Kraai
2000-07-12 17:02:35 +00:00
parent e58771e73c
commit be84cd4ef6
42 changed files with 141 additions and 144 deletions

View File

@@ -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 */

View File

@@ -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);

View File

@@ -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