diff options
| author | Matt Kraai <kraai@debian.org> | 2000-07-12 17:02:35 +0000 |
|---|---|---|
| committer | Matt Kraai <kraai@debian.org> | 2000-07-12 17:02:35 +0000 |
| commit | be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch) | |
| tree | 088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /util-linux | |
| parent | e58771e73c0d8589a458ede4088f5ba70eff917b (diff) | |
| download | busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.bz2 busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip | |
Always report the applet name when doing error reporting.
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/freeramdisk.c | 4 | ||||
| -rw-r--r-- | util-linux/mount.c | 2 | ||||
| -rw-r--r-- | util-linux/umount.c | 2 |
3 files changed, 4 insertions, 4 deletions
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) | |||
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | if ((f = open(argv[1], O_RDWR)) == -1) { | 54 | if ((f = open(argv[1], O_RDWR)) == -1) { |
| 55 | fatalError( "freeramdisk: cannot open %s: %s\n", argv[1], strerror(errno)); | 55 | fatalError( "cannot open %s: %s\n", argv[1], strerror(errno)); |
| 56 | } | 56 | } |
| 57 | if (ioctl(f, BLKFLSBUF) < 0) { | 57 | if (ioctl(f, BLKFLSBUF) < 0) { |
| 58 | fatalError( "freeramdisk: failed ioctl on %s: %s\n", argv[1], strerror(errno)); | 58 | fatalError( "failed ioctl on %s: %s\n", argv[1], strerror(errno)); |
| 59 | } | 59 | } |
| 60 | /* Don't bother closing. Exit does | 60 | /* Don't bother closing. Exit does |
| 61 | * that, so we can save a few bytes */ | 61 | * 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, | |||
| 193 | #endif | 193 | #endif |
| 194 | 194 | ||
| 195 | if (errno == EPERM) { | 195 | if (errno == EPERM) { |
| 196 | fatalError("mount: permission denied. Are you root?\n"); | 196 | fatalError("permission denied. Are you root?\n"); |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | return (FALSE); | 199 | 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) | |||
| 201 | if (status != 0 && doForce == TRUE) { | 201 | if (status != 0 && doForce == TRUE) { |
| 202 | status = umount2(blockDevice, MNT_FORCE); | 202 | status = umount2(blockDevice, MNT_FORCE); |
| 203 | if (status != 0) { | 203 | if (status != 0) { |
| 204 | fatalError("umount: forced umount of %s failed!\n", blockDevice); | 204 | fatalError("forced umount of %s failed!\n", blockDevice); |
| 205 | } | 205 | } |
| 206 | } | 206 | } |
| 207 | #endif | 207 | #endif |
