aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-03-07 07:47:10 +0000
committerErik Andersen <andersen@codepoet.org>2000-03-07 07:47:10 +0000
commitea6b67de65bfc13544d21fd54ace02b23609cf12 (patch)
tree2ae4205a236bb8566cc9efb332c686b63ca3c347
parent246cc6dddd3df2164e8a925ebd8e9a7bba379253 (diff)
downloadbusybox-w32-ea6b67de65bfc13544d21fd54ace02b23609cf12.tar.gz
busybox-w32-ea6b67de65bfc13544d21fd54ace02b23609cf12.tar.bz2
busybox-w32-ea6b67de65bfc13544d21fd54ace02b23609cf12.zip
Add a #define to make init extra quiet on boot.
-Erik
-rw-r--r--busybox.def.h1
-rw-r--r--init.c12
-rw-r--r--init/init.c12
3 files changed, 21 insertions, 4 deletions
diff --git a/busybox.def.h b/busybox.def.h
index da34055ee..5fc86fb17 100644
--- a/busybox.def.h
+++ b/busybox.def.h
@@ -174,3 +174,4 @@
174//#define BB_FEATURE_INIT_CHROOT 174//#define BB_FEATURE_INIT_CHROOT
175#endif 175#endif
176// 176//
177#define BB_FEATURE_EXTRA_QUIET
diff --git a/init.c b/init.c
index 350ea62a8..8e28f076f 100644
--- a/init.c
+++ b/init.c
@@ -843,11 +843,19 @@ extern int init_main(int argc, char **argv)
843 843
844 /* Hello world */ 844 /* Hello world */
845#ifndef DEBUG_INIT 845#ifndef DEBUG_INIT
846 message(LOG, 846 message(
847#if ! defined BB_FEATURE_EXTRA_QUIET
848 CONSOLE|
849#endif
850 LOG,
847 "init started: BusyBox v%s (%s) multi-call binary\r\n", 851 "init started: BusyBox v%s (%s) multi-call binary\r\n",
848 BB_VER, BB_BT); 852 BB_VER, BB_BT);
849#else 853#else
850 message(LOG, 854 message(
855#if ! defined BB_FEATURE_EXTRA_QUIET
856 CONSOLE|
857#endif
858 LOG,
851 "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n", 859 "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n",
852 getpid(), BB_VER, BB_BT); 860 getpid(), BB_VER, BB_BT);
853#endif 861#endif
diff --git a/init/init.c b/init/init.c
index 350ea62a8..8e28f076f 100644
--- a/init/init.c
+++ b/init/init.c
@@ -843,11 +843,19 @@ extern int init_main(int argc, char **argv)
843 843
844 /* Hello world */ 844 /* Hello world */
845#ifndef DEBUG_INIT 845#ifndef DEBUG_INIT
846 message(LOG, 846 message(
847#if ! defined BB_FEATURE_EXTRA_QUIET
848 CONSOLE|
849#endif
850 LOG,
847 "init started: BusyBox v%s (%s) multi-call binary\r\n", 851 "init started: BusyBox v%s (%s) multi-call binary\r\n",
848 BB_VER, BB_BT); 852 BB_VER, BB_BT);
849#else 853#else
850 message(LOG, 854 message(
855#if ! defined BB_FEATURE_EXTRA_QUIET
856 CONSOLE|
857#endif
858 LOG,
851 "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n", 859 "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n",
852 getpid(), BB_VER, BB_BT); 860 getpid(), BB_VER, BB_BT);
853#endif 861#endif