From b21915982a487a8cb416d91011ca2537bfa129b1 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 7 Mar 2000 07:47:10 +0000 Subject: Add a #define to make init extra quiet on boot. -Erik git-svn-id: svn://busybox.net/trunk/busybox@394 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- busybox.def.h | 1 + init.c | 12 ++++++++++-- init/init.c | 12 ++++++++++-- 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 @@ //#define BB_FEATURE_INIT_CHROOT #endif // +#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) /* Hello world */ #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", BB_VER, BB_BT); #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", getpid(), BB_VER, BB_BT); #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) /* Hello world */ #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", BB_VER, BB_BT); #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", getpid(), BB_VER, BB_BT); #endif -- cgit v1.2.3-55-g6feb