diff options
-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); |