Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756269AbYLFJL1 (ORCPT ); Sat, 6 Dec 2008 04:11:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752291AbYLFJLN (ORCPT ); Sat, 6 Dec 2008 04:11:13 -0500 Received: from 136-022.dsl.LABridge.com ([206.117.136.22]:1956 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752053AbYLFJLM (ORCPT ); Sat, 6 Dec 2008 04:11:12 -0500 Subject: Re: [RFC] Recursive printk From: Joe Perches To: Nick Andrew Cc: Andrew Morton , Linux Kernel Mailing List , Linus Torvalds , Tejun Heo , Takashi Iwai In-Reply-To: <20081206084038.GG5957@mail.local.tull.net> References: <20081206065922.29149.63380.stgit@marcab.local.tull.net> <20081205232016.366765e2.akpm@linux-foundation.org> <1228549357.13046.618.camel@localhost> <20081206084038.GG5957@mail.local.tull.net> Content-Type: text/plain Date: Sat, 06 Dec 2008 01:11:33 -0800 Message-Id: <1228554693.13046.624.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2-1.2mdv2009.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 838 Lines: 20 On Sat, 2008-12-06 at 19:40 +1100, Nick Andrew wrote: > The basic problem is that subsystems want to prepend or append their > own data to kernel messages generated by subsystem code, and they > both want to use printf-type strings. How to combine them into a > single kernel log message without using extra memory, or double > handling of strings? pr_fmt seems to work for that. I think the question is how to output messages that use multiple calls to printk so they are not interleaved. Giving up printf argument verification seems too high a price to pay for the benefit of recursion. -- 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/