From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758739AbZBZDXP (ORCPT ); Wed, 25 Feb 2009 22:23:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753059AbZBZDW7 (ORCPT ); Wed, 25 Feb 2009 22:22:59 -0500 Received: from rv-out-0506.google.com ([209.85.198.226]:45105 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752958AbZBZDW6 (ORCPT ); Wed, 25 Feb 2009 22:22:58 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=PLa5zveGaejRJqmL0BQmnqWRt2L0sYnsVpvO87r9hFtflMkMl6TWt/dZwbV6zB3J3y Wosjt0QOBQWGbwB5c7SZTtKiRWAOLFhcmo6CaxXglDMDyPJFJnZ1nkQku2eYg1gnoOsN C65RcxoSXWfeQPfsgXJANtmOygi/w7EBzIJCY= Subject: Re: [RFC] introduce pr_cont macro From: Harvey Harrison To: Ingo Molnar Cc: Cyrill Gorcunov , Andrew Morton , LKML , "H. Peter Anvin" In-Reply-To: <20090226031301.GE7526@elte.hu> References: <20090225205920.GA22091@localhost> <20090226030315.GB7526@elte.hu> <1235617541.5610.0.camel@brick> <20090226031301.GE7526@elte.hu> Content-Type: text/plain Date: Wed, 25 Feb 2009 19:22:54 -0800 Message-Id: <1235618574.5610.1.camel@brick> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2009-02-26 at 04:13 +0100, Ingo Molnar wrote: > * Harvey Harrison wrote: > > > On Thu, 2009-02-26 at 04:03 +0100, Ingo Molnar wrote: > > > * Cyrill Gorcunov wrote: > > > > > > > We cover all log-levels by pr_... macros except > > > > KERN_CONT one. Add it for convenience. > > > > > > > > Signed-off-by: Cyrill Gorcunov > > > > --- > > > > > > > > I think start printing with some pr_... macro > > > > and continue with printk(KERN_CONT ...) look > > > > not that clear -- better to continue with > > > > same pr_... slogan. Thoughts? I hope I didn't > > > > miss anything. > > > > > > > > include/linux/kernel.h | 2 ++ > > > > 1 file changed, 2 insertions(+) > > > > > > > > Index: linux-2.6.git/include/linux/kernel.h > > > > =================================================================== > > > > --- linux-2.6.git.orig/include/linux/kernel.h > > > > +++ linux-2.6.git/include/linux/kernel.h > > > > @@ -370,6 +370,8 @@ static inline char *pack_hex_byte(char * > > > > printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) > > > > #define pr_info(fmt, ...) \ > > > > printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) > > > > +#define pr_cont(fmt, ...) \ > > > > + printk(KERN_CONT pr_fmt(fmt), ##__VA_ARGS__) > > > > > > Makes sense. > > > > > > Acked-by: Ingo Molnar > > > > > > > Don't you want to omit the pr_fmt() from the KERN_CONT case? > > indeed, good catch. It should be: > > #define pr_cont(fmt, ...) \ > printk(KERN_CONT ##__VA_ARGS__) Missing fmt entirely? Harvey