mtd: ubi, ubifs debug: Use pr_debug instead of pr_crit
authorEran Matityahu <eran.m@variscite.com>
Wed, 13 Feb 2019 18:56:17 +0000 (20:56 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 9 Apr 2019 05:46:42 +0000 (07:46 +0200)
Before printk.h was introduced and MTDDEBUG was removed,
pr_crit() was calling MTDDEBUG(), which was since then
replaced by the current pr_debug().

pr_debug is more appropriate here.

Signed-off-by: Eran Matityahu <eran.m@variscite.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/mtd/ubi/debug.h
fs/ubifs/debug.h

index d853520108f19760f9f205f8d72f6c62cd70284a..2c2faaf1b4dcc069f40139cb1efded2ab76df05d 100644 (file)
@@ -29,7 +29,7 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);
 #else
 #define ubi_assert(expr)  do {                                               \
        if (unlikely(!(expr))) {                                             \
-               pr_crit("UBI assert failed in %s at %u\n",                   \
+               pr_debug("UBI assert failed in %s at %u\n",                  \
                       __func__, __LINE__);                                  \
                dump_stack();                                                \
        }                                                                    \
index bad0c67f5dac4b50010995f26458bb9fe317f406..5f6e12702de804b1fb030ba0863427efed05b989 100644 (file)
@@ -167,7 +167,7 @@ struct ubifs_global_debug_info {
 #else
 #define ubifs_assert(expr) do {                                                \
        if (unlikely(!(expr))) {                                               \
-               pr_crit("UBIFS assert failed in %s at %u\n",                   \
+               pr_debug("UBIFS assert failed in %s at %u\n",                  \
                       __func__, __LINE__);                                    \
                dump_stack();                                                  \
        }                                                                      \
@@ -176,7 +176,7 @@ struct ubifs_global_debug_info {
 #define ubifs_assert_cmt_locked(c) do {                                        \
        if (unlikely(down_write_trylock(&(c)->commit_sem))) {                  \
                up_write(&(c)->commit_sem);                                    \
-               pr_crit("commit lock is not locked!\n");                       \
+               pr_debug("commit lock is not locked!\n");                      \
                ubifs_assert(0);                                               \
        }                                                                      \
 } while (0)