Re: [PATCH] Fix print out of function which called WARN_ON()
From: Ian Campbell
Date: Mon May 18 2009 - 05:10:15 EST
On Sat, 2009-05-16 at 13:47 -0700, Linus Torvalds wrote:
> - it uses '%pS' instead of of sprint_symbol
[...]
> - printk(KERN_WARNING "WARNING: at %s:%d %s()\n", file,
> - line, function);
> + printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller);
Those parens end up looking pretty odd to me with the %pS:
WARNING: at [...] local_bh_enable+0x68/0x80()
Otherwise it works fine, thanks.
Ian.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/