From: Anton Blanchard <anton@samba.org>
To: Alex Elder <aelder@sgi.com>, Dave Chinner <dchinner@redhat.com>,
Christoph Hellwig <hch@lst.de>
Cc: xfs-masters@oss.sgi.com, xfs@oss.sgi.com
Subject: xfs: Add log level to assertion printk
Date: Fri, 7 Jan 2011 14:30:41 +1100 [thread overview]
Message-ID: <20110107143041.1d07e34f@kryten> (raw)
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>
---
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@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2011-01-07 3:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 3:30 Anton Blanchard [this message]
2011-01-07 12:55 ` xfs: Add log level to assertion printk Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110107143041.1d07e34f@kryten \
--to=anton@samba.org \
--cc=aelder@sgi.com \
--cc=dchinner@redhat.com \
--cc=hch@lst.de \
--cc=xfs-masters@oss.sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox