Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752859Ab0KWK6s (ORCPT ); Tue, 23 Nov 2010 05:58:48 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:48916 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698Ab0KWK6q (ORCPT ); Tue, 23 Nov 2010 05:58:46 -0500 Date: Tue, 23 Nov 2010 11:58:30 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Russell King - ARM Linux Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, Arjan van de Ven , Linus Torvalds Subject: Re: About multi-line printk and the need (not) to repeat loglevel markers [Was: Re: [PATCH] ARM: mx3/pcm037: properly allocate memory for mx3-camera] Message-ID: <20101123105830.GO4693@pengutronix.de> References: <20101011152516.GF27153@n2100.arm.linux.org.uk> <1290505382-16110-1-git-send-email-u.kleine-koenig@pengutronix.de> <20101123101210.GA18170@n2100.arm.linux.org.uk> <20101123103940.GN4693@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20101123103940.GN4693@pengutronix.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2609 Lines: 71 On Tue, Nov 23, 2010 at 11:39:40AM +0100, Uwe Kleine-K?nig wrote: > 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: > > On Tue, Nov 23, 2010 at 10:43:02AM +0100, Uwe Kleine-K?nig wrote: > > > There is no need to memzero the buffer because dma_alloc_coherent zeros > > > the memory for us. > > > > > > This fixes: > > > > > > BUG: Your driver calls ioremap() on system memory. This leads > > > <4>to architecturally unpredictable behaviour on ARMv6+, and ioremap() > > > <4>will fail in the next kernel release. Please fix your driver. > > > > > > Tested-by: Michael Grzeschik > > > Signed-off-by: Uwe Kleine-K?nig > > > --- > > [...] > > > I assume sending a patch to remove the <4> is just a waste of time, > > > isn't it? > (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.) > > > Hmm, someone changed the behaviour of printk - it used to require the > > tag after each newline. It seems that it only requires it as the first > > few characters now, which is a pain in the backside if you split > > printk's. > > > > IOW: > > > > printk(KERN_ERR "foo bar baz "); > > printk("buz\n" KERN_WARNING "fiz\n"); > > > > used to result in "foo bar baz buz" being printed at error level, and > > "fiz" at warning level. Today, you'll get "foo bar baz buz" at error > > level, and "<4>fiz" at the default level. BTW, I just noticed that Linus wrote: Additionally, if no newline existed, one is added (unless the log-level is the explicit KERN_CONT marker, to explicitly show that it's a continuation of a previous line). This seems to be unimplemented, otherwise the output of printk(KERN_ERR "foo bar baz "); printk("buz\n" KERN_WARNING "fiz\n"); should be "foo bar baz \n" at error level "buz\n<4>fiz\n" at default level useless_mail_counter++; Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/