ubispl: introduce separate CONFIG_UBI_SPL_SILENCE_MSG
authorMarkus Klotzbuecher <markus.klotzbuecher@kistler.com>
Wed, 15 May 2019 13:16:00 +0000 (15:16 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 9 Jul 2019 05:00:26 +0000 (07:00 +0200)
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>
common/spl/Kconfig
drivers/mtd/ubispl/ubispl.h

index 716b1ec..8021661 100644 (file)
@@ -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
 
index bcc376c..b7cb7fc 100644 (file)
@@ -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__)