From: Heiko Schocher Date: Tue, 30 Apr 2019 07:16:05 +0200 Subject: [U-Boot] [PATCH 6/6] ubispl: introduce separate CONFIG_UBI_SPL_SILENCE_MSG In-Reply-To: <20190415153206.3472-7-mk@mkio.de> References: <20190415153206.3472-1-mk@mkio.de> <20190415153206.3472-7-mk@mkio.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Markus, Am 15.04.2019 um 17:32 schrieb Markus Klotzbuecher: > From: Markus Klotzbuecher > > This allows to silence ubi and ubispl individually. > > Signed-off-by: Markus Klotzbuecher > Cc: Heiko Schocher > Cc: Kyungmin Park > --- > common/spl/Kconfig | 6 ++++++ > drivers/mtd/ubispl/ubispl.h | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/common/spl/Kconfig b/common/spl/Kconfig > index 0e91bd309b..37dce69e81 100644 > --- a/common/spl/Kconfig > +++ b/common/spl/Kconfig > @@ -638,6 +638,12 @@ config SPL_UBI_LOAD_ARGS_ID > help > The UBI volume id from which to load the device tree > > +config UBI_SPL_SILENCE_MSG > + bool "silence UBI SPL messages" > + default n > + help > + Disable messages from UBI SPL. This leaves warnings > + and errors enabled. > > endif # if SPL_UBI > > diff --git a/drivers/mtd/ubispl/ubispl.h b/drivers/mtd/ubispl/ubispl.h > index bcc376c6d7..b7cb7fc941 100644 > --- a/drivers/mtd/ubispl/ubispl.h > +++ b/drivers/mtd/ubispl/ubispl.h > @@ -129,7 +129,7 @@ struct ubi_scan_info { > #define ubi_dbg(fmt, ...) > #endif > > -#ifdef CONFIG_UBI_SILENCE_MSG > +#ifdef CONFIG_UBI_SPL_SILENCE_MSG > #define ubi_msg(fmt, ...) > #else > #define ubi_msg(fmt, ...) printf("UBI: " fmt "\n", ##__VA_ARGS__) > Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de