aboutsummaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 01:51:25 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 01:51:25 +0000
commited2dfb60ee4a99850e9e68fb27512a0bab4ba992 (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /mount.c
parentf35f4340a4f7ae02b1139ac9f303e5b8081d71e9 (diff)
downloadbusybox-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 'mount.c')
-rw-r--r--mount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mount.c b/mount.c
index 900ab30a7..455e4a1c1 100644
--- a/mount.c
+++ b/mount.c
@@ -157,15 +157,15 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
157 157
158 specialfile = find_unused_loop_device(); 158 specialfile = find_unused_loop_device();
159 if (specialfile == NULL) { 159 if (specialfile == NULL) {
160 fprintf(stderr, "Could not find a spare loop device\n"); 160 errorMsg("Could not find a spare loop device\n");
161 return (FALSE); 161 return (FALSE);
162 } 162 }
163 if (set_loop(specialfile, lofile, 0, &loro)) { 163 if (set_loop(specialfile, lofile, 0, &loro)) {
164 fprintf(stderr, "Could not setup loop device\n"); 164 errorMsg("Could not setup loop device\n");
165 return (FALSE); 165 return (FALSE);
166 } 166 }
167 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */ 167 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */
168 fprintf(stderr, "WARNING: loop device is read-only\n"); 168 errorMsg("WARNING: loop device is read-only\n");
169 flags &= ~MS_RDONLY; 169 flags &= ~MS_RDONLY;
170 } 170 }
171 } 171 }
@@ -329,7 +329,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
329 329
330 if (status == FALSE) { 330 if (status == FALSE) {
331 if (whineOnErrors == TRUE) { 331 if (whineOnErrors == TRUE) {
332 fprintf(stderr, "Mounting %s on %s failed: %s\n", 332 errorMsg("Mounting %s on %s failed: %s\n",
333 blockDevice, directory, strerror(errno)); 333 blockDevice, directory, strerror(errno));
334 } 334 }
335 return (FALSE); 335 return (FALSE);