From 734b080e78805edbb3430a52c8c5b1aeee02bd9f Mon Sep 17 00:00:00 2001 From: Eran Matityahu Date: Wed, 13 Feb 2019 20:56:17 +0200 Subject: mtd: ubi, ubifs debug: Use pr_debug instead of pr_crit 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 Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index d853520108f..2c2faaf1b4d 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h @@ -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(); \ } \ -- cgit v1.3.1