aboutsummaryrefslogtreecommitdiff
path: root/util-linux/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r--util-linux/umount.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index e76e0521f..0867118c0 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -216,7 +216,7 @@ static int umount_all(int useMtab)
216 if (status != 0) { 216 if (status != 0) {
217 /* Don't bother retrying the umount on busy devices */ 217 /* Don't bother retrying the umount on busy devices */
218 if (errno == EBUSY) { 218 if (errno == EBUSY) {
219 perror(mountpt); 219 perror_msg("%s", mountpt);
220 continue; 220 continue;
221 } 221 }
222 status = do_umount(mountpt, useMtab); 222 status = do_umount(mountpt, useMtab);
@@ -280,7 +280,6 @@ extern int umount_main(int argc, char **argv)
280 } 280 }
281 if (do_umount(*argv, useMtab) == TRUE) 281 if (do_umount(*argv, useMtab) == TRUE)
282 return EXIT_SUCCESS; 282 return EXIT_SUCCESS;
283 perror("umount"); 283 perror_msg_and_die("%s", *argv);
284 return EXIT_FAILURE;
285} 284}
286 285