summaryrefslogtreecommitdiff
path: root/umount.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-01-31 19:00:21 +0000
committerMatt Kraai <kraai@debian.org>2001-01-31 19:00:21 +0000
commitdd19c6990496023fe23fefef8f1798740f7d39c6 (patch)
tree3933adefa4171173db78fa2389146ac89f4edb86 /umount.c
parent63ec2732454a0c973305794e185e488106f6b282 (diff)
downloadbusybox-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.gz
busybox-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.bz2
busybox-dd19c6990496023fe23fefef8f1798740f7d39c6.zip
Removed trailing \n from error_msg{,_and_die} messages.
Diffstat (limited to 'umount.c')
-rw-r--r--umount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/umount.c b/umount.c
index 3772d55f0..39842d232 100644
--- a/umount.c
+++ b/umount.c
@@ -81,7 +81,7 @@ void mtab_read(void)
return;
if ((fp = setmntent(mtab_file, "r")) == NULL) {
- error_msg("Cannot open %s\n", mtab_file);
+ error_msg("Cannot open %s", mtab_file);
return;
}
while ((e = getmntent(fp))) {
@@ -181,7 +181,7 @@ static int do_umount(const char *name, int useMtab)
if (status != 0 && doForce == TRUE) {
status = umount2(blockDevice, MNT_FORCE);
if (status != 0) {
- error_msg_and_die("forced umount of %s failed!\n", blockDevice);
+ error_msg_and_die("forced umount of %s failed!", blockDevice);
}
}
#endif
@@ -189,9 +189,9 @@ static int do_umount(const char *name, int useMtab)
status = mount(blockDevice, name, NULL,
MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL);
if (status == 0) {
- error_msg("%s busy - remounted read-only\n", blockDevice);
+ error_msg("%s busy - remounted read-only", blockDevice);
} else {
- error_msg("Cannot remount %s read-only\n", blockDevice);
+ error_msg("Cannot remount %s read-only", blockDevice);
}
}
if (status == 0) {