diff options
author | Matt Kraai | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | Matt Kraai | 2000-07-14 01:51:25 +0000 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /util-linux/umount.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) | |
download | busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz |
Use errorMsg rather than fprintf.
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 59dcb66..1b250fd 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -101,7 +101,7 @@ void mtab_read(void) return; if ((fp = setmntent(mtab_file, "r")) == NULL) { - fprintf(stderr, "Cannot open %s\n", mtab_file); + errorMsg("Cannot open %s\n", mtab_file); return; } while ((e = getmntent(fp))) { @@ -209,11 +209,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) { - fprintf(stderr, "umount: %s busy - remounted read-only\n", - blockDevice); + errorMsg("%s busy - remounted read-only\n", blockDevice); } else { - fprintf(stderr, "umount: Cannot remount %s read-only\n", - blockDevice); + errorMsg("Cannot remount %s read-only\n", blockDevice); } } if (status == 0) { |