summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2018-03-24 01:49:22 +0100
committerHeiko Schocher <hs@denx.de>2018-03-24 06:36:54 +0100
commite9951281585060a7ba9d9826e286ff3e7ed067bb (patch)
tree913da612059423b32d347ddb44f0079a3bad9a26 /fs
parent423effc04a195ce6a464eadadfa7f765bf786889 (diff)
downloadu-boot-e9951281585060a7ba9d9826e286ff3e7ed067bb.tar.gz
ubifs: Reintroduce using CONFIG_UBIFS_SILENCE_MSG
Use of CONFIG_UBIFS_SILENCE_MSG was added in 147162dac6 ("ubi: ubifs: Turn off verbose prints") Then it was removed in ff94bc40af ("mtd, ubi, ubifs: resync with Linux-3.14") Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Heiko Schocher <hs@denx.de> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/ubifs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 1d89465205..b4ce706a8e 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -618,9 +618,13 @@ static inline ino_t parent_ino(struct dentry *dentry)
#define UBIFS_VERSION 1
/* Normal UBIFS messages */
+#ifdef CONFIG_UBIFS_SILENCE_MSG
+#define ubifs_msg(c, fmt, ...)
+#else
#define ubifs_msg(c, fmt, ...) \
pr_notice("UBIFS (ubi%d:%d): " fmt "\n", \
(c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__)
+#endif
/* UBIFS error messages */
#ifndef __UBOOT__
#define ubifs_err(c, fmt, ...) \