diff options
author | Markus Klotzbuecher <markus.klotzbuecher@kistler.com> | 2019-05-15 15:16:00 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2019-07-09 07:00:26 +0200 |
commit | a2257d378ea8b2c2fa7dbf01b4703a53be431819 (patch) | |
tree | ef42ef39e5579af26500acd360103adb2f90c71d | |
parent | 6ea31cce0b63398e2a5228d685175bbc63e9072c (diff) | |
download | u-boot-a2257d378ea8b2c2fa7dbf01b4703a53be431819.tar.gz |
ubispl: introduce separate CONFIG_UBI_SPL_SILENCE_MSG
This allows to silence ubi and ubispl individually.
Signed-off-by: Markus Klotzbuecher <markus.klotzbuecher@kistler.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Cc: Kyungmin Park <kmpark@infradead.org>
-rw-r--r-- | common/spl/Kconfig | 6 | ||||
-rw-r--r-- | drivers/mtd/ubispl/ubispl.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 716b1ececce..802166131c5 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -702,6 +702,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 bcc376c6d72..b7cb7fc941f 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__) |