xfs: Add log level to assertion printk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I received a ppc64 bug report involving xfs but the assertion was filtered out
by the console log level. Use KERN_CRIT to ensure it makes it out.

Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>
---

diff --git a/fs/xfs/support/debug.c b/fs/xfs/support/debug.c
index 975aa10..86162e5 100644
--- a/fs/xfs/support/debug.c
+++ b/fs/xfs/support/debug.c
@@ -104,7 +104,8 @@ xfs_fs_vcmn_err(
 void
 assfail(char *expr, char *file, int line)
 {
-	printk("Assertion failed: %s, file: %s, line: %d\n", expr, file, line);
+	printk(KERN_CRIT "Assertion failed: %s, file: %s, line: %d\n", expr,
+	       file, line);
 	BUG();
 }
 

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux