Return-Path: Received: from localhost (bix [127.0.0.1]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i5OL4P3Z004865 for ; Thu, 24 Jun 2004 14:04:25 -0700 Received: from bix [127.0.0.1] by localhost with POP3 (fetchmail-6.2.0) for akpm@localhost (single-drop); Thu, 24 Jun 2004 14:04:25 -0700 (PDT) Received: from fire-2.osdl.org (air1.pdx.osdl.net [172.20.0.5]) by mail.osdl.org (8.11.6/8.11.6) with ESMTP id i5OL2pZ15658 for ; Thu, 24 Jun 2004 14:02:52 -0700 Received: from mail.dif.dk (mail.dif.dk [193.138.115.101]) by fire-2.osdl.org (8.12.8/8.12.8) with ESMTP id i5OL2mwr018260 for ; Thu, 24 Jun 2004 14:02:50 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.dif.dk (Postfix) with ESMTP id AF0ABFFC97 for ; Thu, 24 Jun 2004 23:11:49 +0200 (CEST) Received: from mail.dif.dk ([127.0.0.1]) by localhost (saerimmer [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00385-14 for ; Thu, 24 Jun 2004 23:11:47 +0200 (CEST) Received: from diftmgw2.backbone.dif.dk (diftmgw2.backbone.dif.dk [10.227.136.246]) by mail.dif.dk (Postfix) with ESMTP id 19B11FFC5D for ; Thu, 24 Jun 2004 23:11:47 +0200 (CEST) Received: from DIFPST1A.dif.dk ([10.227.136.217]) by diftmgw2.backbone.dif.dk with InterScan Messaging Security Suite; Thu, 24 Jun 2004 23:01:48 +0200 Received: from mambo.jju.local (10.227.1.182 [10.227.1.182]) by DIFPST1A.dif.dk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id LX9YQRM0; Thu, 24 Jun 2004 23:02:43 +0200 Date: Thu, 24 Jun 2004 23:01:44 +0200 (CEST) From: Jesper Juhl To: Andrew Morton Cc: "H. Peter Anvin" , Dave Jones , Linux Kernel Mailing List Subject: [PATCH] Line up CPU caps messages Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at dif.dk X-MIMEDefang-Filter: osdl$Revision: 1.70 $ X-Scanned-By: MIMEDefang 2.36 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on bix X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=1.0 tests=BAYES_00 autolearn=ham version=2.60 Andrew, Here's a patch to line up the "CPU: After * identify, caps:" messages produced by printk's in arch/i386/kernel/cpu/common.c Numbers are easier to compare visually when they line up. Both in dmesg output and in logs. It's also more pleasing ro look at this way in my oppinion. I've posted this to lkml previously in a slightly different version that drew the comments below from hpa & Dave Jones. This patch makes the changes suggested by them - for inclusion in next -mm maybe? H. Peter Anvin wrote: > > Jesper Juhl wrote: > > > > /Very/ minor, trivial thing, yes, but those messages have been annoying my > > eyes for a while now so I desided to make them line up - so, here's the > > patch that does that (not sure if a signed-off-by line is needed even for > > trivial stuff like this, but I assume it should go with everything, so...) > > Patch is against 2.6.7-rc3-mm2 > > > > I think that's what the spaces after CPU: was for... apparently that's > gotten > forgotten somehow. Sigh. Please put the extra spaces all in one place. The patch below has all spaces in the same place as requested. Dave Jones wrote: > On Tue, Jun 15, 2004 at 11:21:44PM +0200, Jesper Juhl wrote: > > > Visually it's much easier to read/compare messages such as these > > > > Jun 15 19:09:02 dragon kernel: CPU: After generic identify, caps: 0183f9ff c1c7f9ff 00000000 00000000 > > Jun 15 19:09:02 dragon kernel: CPU: After vendor identify, caps: 0183f9ff c1c7f9ff 00000000 00000000 > > > > if the numbers line up like this > > > > Jun 15 19:09:02 dragon kernel: CPU: After generic identify, caps: 0183f9ff c1c7f9ff 00000000 00000000 > > Jun 15 19:09:02 dragon kernel: CPU: After vendor identify, caps: 0183f9ff c1c7f9ff 00000000 00000000 > > I think it's pointless whilst the third 'after all inits' printk remains > a) unindented and b) interrupted by other blurb, but in all honesty, > I don't think it really matters, so I won't object either way if it goes > in. The patch below adresses 'a' by indenting the third line similar to the first two. 'b' I'm not able to do anything about, that's beyond my abillities currently. Here's the patch, against 2.6.7-mm2. Signed-off-by: Jesper Juhl --- linux-2.6.7-mm2-orig/arch/i386/kernel/cpu/common.c 2004-06-24 22:20:43.000000000 +0200 +++ linux-2.6.7-mm2/arch/i386/kernel/cpu/common.c 2004-06-24 22:35:27.000000000 +0200 @@ -329,7 +329,7 @@ void __init identify_cpu(struct cpuinfo_ generic_identify(c); - printk(KERN_DEBUG "CPU: After generic identify, caps: %08lx %08lx %08lx %08lx\n", + printk(KERN_DEBUG "CPU: After generic identify, caps: %08lx %08lx %08lx %08lx\n", c->x86_capability[0], c->x86_capability[1], c->x86_capability[2], @@ -338,7 +338,7 @@ void __init identify_cpu(struct cpuinfo_ if (this_cpu->c_identify) { this_cpu->c_identify(c); - printk(KERN_DEBUG "CPU: After vendor identify, caps: %08lx %08lx %08lx %08lx\n", + printk(KERN_DEBUG "CPU: After vendor identify, caps: %08lx %08lx %08lx %08lx\n", c->x86_capability[0], c->x86_capability[1], c->x86_capability[2], @@ -393,7 +393,7 @@ void __init identify_cpu(struct cpuinfo_ /* Now the feature flags better reflect actual CPU features! */ - printk(KERN_DEBUG "CPU: After all inits, caps: %08lx %08lx %08lx %08lx\n", + printk(KERN_DEBUG "CPU: After all inits, caps: %08lx %08lx %08lx %08lx\n", c->x86_capability[0], c->x86_capability[1], c->x86_capability[2], -- Jesper Juhl