aboutsummaryrefslogtreecommitdiff
path: root/umount.c
diff options
context:
space:
mode:
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)
81 return; 81 return;
82 82
83 if ((fp = setmntent(mtab_file, "r")) == NULL) { 83 if ((fp = setmntent(mtab_file, "r")) == NULL) {
84 error_msg("Cannot open %s\n", mtab_file); 84 error_msg("Cannot open %s", mtab_file);
85 return; 85 return;
86 } 86 }
87 while ((e = getmntent(fp))) { 87 while ((e = getmntent(fp))) {
@@ -181,7 +181,7 @@ static int do_umount(const char *name, int useMtab)
181 if (status != 0 && doForce == TRUE) { 181 if (status != 0 && doForce == TRUE) {
182 status = umount2(blockDevice, MNT_FORCE); 182 status = umount2(blockDevice, MNT_FORCE);
183 if (status != 0) { 183 if (status != 0) {
184 error_msg_and_die("forced umount of %s failed!\n", blockDevice); 184 error_msg_and_die("forced umount of %s failed!", blockDevice);
185 } 185 }
186 } 186 }
187#endif 187#endif
@@ -189,9 +189,9 @@ static int do_umount(const char *name, int useMtab)
189 status = mount(blockDevice, name, NULL, 189 status = mount(blockDevice, name, NULL,
190 MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); 190 MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL);
191 if (status == 0) { 191 if (status == 0) {
192 error_msg("%s busy - remounted read-only\n", blockDevice); 192 error_msg("%s busy - remounted read-only", blockDevice);
193 } else { 193 } else {
194 error_msg("Cannot remount %s read-only\n", blockDevice); 194 error_msg("Cannot remount %s read-only", blockDevice);
195 } 195 }
196 } 196 }
197 if (status == 0) { 197 if (status == 0) {