summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-28 09:40:36 +0000
committerGlenn L McGrath2002-11-28 09:40:36 +0000
commitefdd0aed23ab43d90c4237d5cb4b2c00fff77c4b (patch)
treebf50ae84a6664210d68544342bf56e081504ca0a /init
parentd7d5f429349001faab658eb968def689c1ca8d58 (diff)
downloadbusybox-efdd0aed23ab43d90c4237d5cb4b2c00fff77c4b.zip
busybox-efdd0aed23ab43d90c4237d5cb4b2c00fff77c4b.tar.gz
Use error_msg instead of fprintf(stderr
Diffstat (limited to 'init')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index 79ab78f..bb1f383 100644
--- a/init/init.c
+++ b/init/init.c
@@ -230,7 +230,7 @@ static void message(int device, char *fmt, ...)
if (log_fd < 0) {
if ((log_fd = device_open(log, O_RDWR | O_NDELAY)) < 0) {
log_fd = -2;
- fprintf(stderr, "Bummer, can't write to log on %s!\n", log);
+ error_msg("Bummer, can't write to log on %s!", log);
device = CONSOLE;
} else {
fcntl(log_fd, F_SETFD, FD_CLOEXEC);
@@ -253,7 +253,7 @@ static void message(int device, char *fmt, ...)
va_end(arguments);
close(fd);
} else {
- fprintf(stderr, "Bummer, can't print: ");
+ error_msg("Bummer, can't print: ");
va_start(arguments, fmt);
vfprintf(stderr, fmt, arguments);
va_end(arguments);