diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 01:51:25 +0000 |
commit | ed2dfb60ee4a99850e9e68fb27512a0bab4ba992 (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /umount.c | |
parent | f35f4340a4f7ae02b1139ac9f303e5b8081d71e9 (diff) | |
download | busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.gz busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.bz2 busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.zip |
Use errorMsg rather than fprintf.
git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -101,7 +101,7 @@ void mtab_read(void) | |||
101 | return; | 101 | return; |
102 | 102 | ||
103 | if ((fp = setmntent(mtab_file, "r")) == NULL) { | 103 | if ((fp = setmntent(mtab_file, "r")) == NULL) { |
104 | fprintf(stderr, "Cannot open %s\n", mtab_file); | 104 | errorMsg("Cannot open %s\n", mtab_file); |
105 | return; | 105 | return; |
106 | } | 106 | } |
107 | while ((e = getmntent(fp))) { | 107 | while ((e = getmntent(fp))) { |
@@ -209,11 +209,9 @@ static int do_umount(const char *name, int useMtab) | |||
209 | status = mount(blockDevice, name, NULL, | 209 | status = mount(blockDevice, name, NULL, |
210 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); | 210 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); |
211 | if (status == 0) { | 211 | if (status == 0) { |
212 | fprintf(stderr, "umount: %s busy - remounted read-only\n", | 212 | errorMsg("%s busy - remounted read-only\n", blockDevice); |
213 | blockDevice); | ||
214 | } else { | 213 | } else { |
215 | fprintf(stderr, "umount: Cannot remount %s read-only\n", | 214 | errorMsg("Cannot remount %s read-only\n", blockDevice); |
216 | blockDevice); | ||
217 | } | 215 | } |
218 | } | 216 | } |
219 | if (status == 0) { | 217 | if (status == 0) { |