aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-01-06 22:30:41 -0500
committerAlex Elder <aelder@sgi.com>2011-01-11 23:29:46 -0500
commit65a84a0f7567ea244e5246e642920260cfc2744a (patch)
tree97217a12f1a35073fcb45521f402b36e56565fa5
parent1884bd8354c9aec4ca501dc4773c13ad2a09af7b (diff)
xfs: Add log level to assertion printk
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>
-rw-r--r--fs/xfs/support/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/support/debug.c b/fs/xfs/support/debug.c
index 975aa10e1a47..86162e5f9a21 100644
--- a/fs/xfs/support/debug.c
+++ b/fs/xfs/support/debug.c
@@ -104,7 +104,8 @@ xfs_fs_vcmn_err(
104void 104void
105assfail(char *expr, char *file, int line) 105assfail(char *expr, char *file, int line)
106{ 106{
107 printk("Assertion failed: %s, file: %s, line: %d\n", expr, file, line); 107 printk(KERN_CRIT "Assertion failed: %s, file: %s, line: %d\n", expr,
108 file, line);
108 BUG(); 109 BUG();
109} 110}
110 111