diff options
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |