]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
xfs: Add log level to assertion printk
authorAnton Blanchard <anton@samba.org>
Fri, 7 Jan 2011 03:30:41 +0000 (03:30 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Jan 2011 04:29:46 +0000 (22:29 -0600)
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@samba.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/support/debug.c

index 975aa10e1a47a3536499b035947ed0c5ac5098a5..86162e5f9a21c3d5de6b9b76fb3c9d852de3060c 100644 (file)
@@ -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();
 }