Add a #define to make init extra quiet on boot.

-Erik
This commit is contained in:
Erik Andersen 2000-03-07 07:47:10 +00:00
parent 246cc6dddd
commit ea6b67de65
3 changed files with 21 additions and 4 deletions

View File

@ -174,3 +174,4 @@
//#define BB_FEATURE_INIT_CHROOT //#define BB_FEATURE_INIT_CHROOT
#endif #endif
// //
#define BB_FEATURE_EXTRA_QUIET

12
init.c
View File

@ -843,11 +843,19 @@ extern int init_main(int argc, char **argv)
/* Hello world */ /* Hello world */
#ifndef DEBUG_INIT #ifndef DEBUG_INIT
message(LOG, message(
#if ! defined BB_FEATURE_EXTRA_QUIET
CONSOLE|
#endif
LOG,
"init started: BusyBox v%s (%s) multi-call binary\r\n", "init started: BusyBox v%s (%s) multi-call binary\r\n",
BB_VER, BB_BT); BB_VER, BB_BT);
#else #else
message(LOG, message(
#if ! defined BB_FEATURE_EXTRA_QUIET
CONSOLE|
#endif
LOG,
"init(%d) started: BusyBox v%s (%s) multi-call binary\r\n", "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n",
getpid(), BB_VER, BB_BT); getpid(), BB_VER, BB_BT);
#endif #endif

View File

@ -843,11 +843,19 @@ extern int init_main(int argc, char **argv)
/* Hello world */ /* Hello world */
#ifndef DEBUG_INIT #ifndef DEBUG_INIT
message(LOG, message(
#if ! defined BB_FEATURE_EXTRA_QUIET
CONSOLE|
#endif
LOG,
"init started: BusyBox v%s (%s) multi-call binary\r\n", "init started: BusyBox v%s (%s) multi-call binary\r\n",
BB_VER, BB_BT); BB_VER, BB_BT);
#else #else
message(LOG, message(
#if ! defined BB_FEATURE_EXTRA_QUIET
CONSOLE|
#endif
LOG,
"init(%d) started: BusyBox v%s (%s) multi-call binary\r\n", "init(%d) started: BusyBox v%s (%s) multi-call binary\r\n",
getpid(), BB_VER, BB_BT); getpid(), BB_VER, BB_BT);
#endif #endif