diff options
Diffstat (limited to 'init/init.c')
-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 99a11e526..beb2b28f0 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -211,7 +211,7 @@ static void message(int device, const char *fmt, ...) | |||
211 | if (log_fd < 0) { | 211 | if (log_fd < 0) { |
212 | if ((log_fd = device_open(log_console, O_RDWR | O_NONBLOCK | O_NOCTTY)) < 0) { | 212 | if ((log_fd = device_open(log_console, O_RDWR | O_NONBLOCK | O_NOCTTY)) < 0) { |
213 | log_fd = -2; | 213 | log_fd = -2; |
214 | bb_error_msg("Bummer, can't write to log on %s!", log_console); | 214 | bb_error_msg("bummer, can't write to log on %s!", log_console); |
215 | device = CONSOLE; | 215 | device = CONSOLE; |
216 | } else { | 216 | } else { |
217 | fcntl(log_fd, F_SETFD, FD_CLOEXEC); | 217 | fcntl(log_fd, F_SETFD, FD_CLOEXEC); |
@@ -232,7 +232,7 @@ static void message(int device, const char *fmt, ...) | |||
232 | #if ENABLE_DEBUG_INIT | 232 | #if ENABLE_DEBUG_INIT |
233 | /* all descriptors may be closed */ | 233 | /* all descriptors may be closed */ |
234 | } else { | 234 | } else { |
235 | bb_error_msg("Bummer, can't print: "); | 235 | bb_error_msg("bummer, can't print: "); |
236 | va_start(arguments, fmt); | 236 | va_start(arguments, fmt); |
237 | vfprintf(stderr, fmt, arguments); | 237 | vfprintf(stderr, fmt, arguments); |
238 | va_end(arguments); | 238 | va_end(arguments); |