Skip to content

Commit

Permalink
xfs: Add log level to assertion printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Blanchard authored and Alex Elder committed Jan 12, 2011
1 parent 1884bd8 commit 65a84a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/xfs/support/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 65a84a0

Please sign in to comment.