Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759928Ab2EJVLV (ORCPT ); Thu, 10 May 2012 17:11:21 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:33237 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758442Ab2EJVLS (ORCPT ); Thu, 10 May 2012 17:11:18 -0400 Message-ID: <1336684277.29763.12.camel@joe2Laptop> Subject: Re: [PATCH RESEND 1/3] printk: convert byte-buffer to variable-length record buffer From: Joe Perches To: Linus Torvalds Cc: Kay Sievers , "Ted Ts'o" , Ingo Molnar , Jonathan Corbet , Sasha Levin , Greg Kroah-Hartmann , linux-kernel@vger.kernel.org Date: Thu, 10 May 2012 14:11:18 -0700 In-Reply-To: References: <20120509070710.GA29981@gmail.com> <1336611278.728.9.camel@mop> <1336667984.947.24.camel@mop> <1336676986.947.47.camel@mop> <20120510201409.GA6467@thunk.org> <1336682226.29763.2.camel@joe2Laptop> <1336682772.29763.6.camel@joe2Laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1320 Lines: 33 On Thu, 2012-05-10 at 13:52 -0700, Linus Torvalds wrote: > On Thu, May 10, 2012 at 1:46 PM, Joe Perches wrote: > > > > That's where I think you're still a bit > > uncertain how the _current_ printk system > > works. > > No, you are. Read my answer from two days ago in this thread. > > KERN_CONT is *not* the same as "". Not now, not ever. If you make it > the same, you're broken. > > The reason is simple: KERN_CONT "<3>" should print out the string > "<3>". I think it's a distinction without a difference for, as fas as I know, that's a case that doesn't exist in the current kernel. $ grep -rP --include=*.[ch] "\bpr_cont\s*\(\s*\"<" * $ grep -rP --include=*.[ch] "\bprintk\s*\(\s*KERN_CONT\s*\"<" * arch/x86/kernel/dumpstack_32.c: printk(KERN_CONT "<%02x> ", c); arch/x86/kernel/dumpstack_64.c: printk(KERN_CONT "<%02x> ", c); arch/powerpc/kernel/process.c: printk(KERN_CONT "<%08x> ", instr); drivers/media/video/tm6000/tm6000-core.c: printk(KERN_CONT "<<< "); drivers/media/video/cx231xx/cx231xx-core.c: printk(KERN_CONT "<<<"); -- 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/