Skip to content

Commit

Permalink
ubifs: Reintroduce using CONFIG_UBIFS_SILENCE_MSG
Browse files Browse the repository at this point in the history
Use of CONFIG_UBIFS_SILENCE_MSG was added in
147162d ("ubi: ubifs: Turn off verbose prints")

Then it was removed in
ff94bc4 ("mtd, ubi, ubifs: resync with Linux-3.14")

Cc: Joe Hershberger <[email protected]>
Cc: Heiko Schocher <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik authored and hsdenx committed Mar 24, 2018
1 parent 423effc commit e995128
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/ubifs/ubifs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...) \
Expand Down

0 comments on commit e995128

Please sign in to comment.