Hello,
[extended the audience to lkml and a few more]
On Tue, Nov 23, 2010 at 10:12:11AM +0000, Russell King - ARM Linux wrote:
(this message is generated by:
printk(KERN_WARNING "BUG: Your driver calls ioremap() on system memory. This leads\n"
KERN_WARNING "to architecturally unpredictable behaviour on ARMv6+, and ioremap()\n"
KERN_WARNING "will fail in the next kernel release. Please fix your driver.\n");
in arch/arm/mm/ioremap.c.)
I wonder if this was intended. It was introduced in v2.6.31-rc1~324
(printk: clean up handling of log-levels and newlines) by Linus.
Thinking about it I consider the current behaviour more sane, because
I cannot imagine a valid usecase to change the loglevel in a single
printk and having to repeat the same loglevel marker for each newline
isn't very effective, too. This for example fixes the usage of
pr_warning et al for multiline strings.
Is it worth to add some logic to vprint that handles repeating (or even
changing) markers after a newline?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--