diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-28 09:40:36 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-28 09:40:36 +0000 |
commit | efdd0aed23ab43d90c4237d5cb4b2c00fff77c4b (patch) | |
tree | bf50ae84a6664210d68544342bf56e081504ca0a | |
parent | d7d5f429349001faab658eb968def689c1ca8d58 (diff) | |
download | busybox-w32-efdd0aed23ab43d90c4237d5cb4b2c00fff77c4b.tar.gz busybox-w32-efdd0aed23ab43d90c4237d5cb4b2c00fff77c4b.tar.bz2 busybox-w32-efdd0aed23ab43d90c4237d5cb4b2c00fff77c4b.zip |
Use error_msg instead of fprintf(stderr
-rw-r--r-- | init/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c index 79ab78fc2..bb1f383b3 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -230,7 +230,7 @@ static void message(int device, char *fmt, ...) | |||
230 | if (log_fd < 0) { | 230 | if (log_fd < 0) { |
231 | if ((log_fd = device_open(log, O_RDWR | O_NDELAY)) < 0) { | 231 | if ((log_fd = device_open(log, O_RDWR | O_NDELAY)) < 0) { |
232 | log_fd = -2; | 232 | log_fd = -2; |
233 | fprintf(stderr, "Bummer, can't write to log on %s!\n", log); | 233 | error_msg("Bummer, can't write to log on %s!", log); |
234 | device = CONSOLE; | 234 | device = CONSOLE; |
235 | } else { | 235 | } else { |
236 | fcntl(log_fd, F_SETFD, FD_CLOEXEC); | 236 | fcntl(log_fd, F_SETFD, FD_CLOEXEC); |
@@ -253,7 +253,7 @@ static void message(int device, char *fmt, ...) | |||
253 | va_end(arguments); | 253 | va_end(arguments); |
254 | close(fd); | 254 | close(fd); |
255 | } else { | 255 | } else { |
256 | fprintf(stderr, "Bummer, can't print: "); | 256 | error_msg("Bummer, can't print: "); |
257 | va_start(arguments, fmt); | 257 | va_start(arguments, fmt); |
258 | vfprintf(stderr, fmt, arguments); | 258 | vfprintf(stderr, fmt, arguments); |
259 | va_end(arguments); | 259 | va_end(arguments); |