linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] remove printk() from J_ASSERT macros
@ 2007-08-20 14:19 Chris Snook
  2007-08-20 14:24 ` [PATCH 1/2] jbd: " Chris Snook
  2007-08-20 14:26 ` [PATCH 2/2] jbd2: " Chris Snook
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Snook @ 2007-08-20 14:19 UTC (permalink / raw)
  To: Andrew Morton, Stephen Tweedie; +Cc: linux-fsdevel, Chris Snook

The printk() in J_ASSERT clobbers registers, making it more difficult to 
determine what caused the assertion failure.  We can deduce the assertion itself 
from the line number in the BUG() message, so let's just use that, and keep our 
registers intact for better debugging.  While the hood is up, also remove a 
superfluous #define/#ifdef.

	-- Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-20 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-20 14:19 [PATCH 0/2] remove printk() from J_ASSERT macros Chris Snook
2007-08-20 14:24 ` [PATCH 1/2] jbd: " Chris Snook
2007-08-20 14:26 ` [PATCH 2/2] jbd2: " Chris Snook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).