[BusyBox-cvs] busybox/init init.c,1.177,1.178

Glenn McGrath bug1 at busybox.net
Thu Nov 28 09:40:40 UTC 2002


Update of /var/cvs/busybox/init
In directory winder:/tmp/cvs-serv21660/init

Modified Files:
	init.c 
Log Message:
Use error_msg instead of fprintf(stderr


Index: init.c
===================================================================
RCS file: /var/cvs/busybox/init/init.c,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -d -r1.177 -r1.178
--- init.c	22 Oct 2002 19:15:19 -0000	1.177
+++ init.c	28 Nov 2002 09:40:36 -0000	1.178
@@ -230,7 +230,7 @@
 	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 @@
 			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);




More information about the busybox-cvs mailing list