Skip to content

remove printk() from J_ASSERT macros

Chris Snook linux-fsdevel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2jbd: remove printk() from J_ASSERT macrosinclude/linux/jbd.h+1 -150 replies
2/2jbd2: remove printk() from J_ASSERT macrosinclude/linux/jbd2.h+1 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] remove printk() from J_ASSERT macros

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