Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982AbZGFUYA (ORCPT ); Mon, 6 Jul 2009 16:24:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753325AbZGFUXt (ORCPT ); Mon, 6 Jul 2009 16:23:49 -0400 Received: from mail-qy0-f193.google.com ([209.85.221.193]:64896 "EHLO mail-qy0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbZGFUXt convert rfc822-to-8bit (ORCPT ); Mon, 6 Jul 2009 16:23:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=yC3r0/hMTFyo/XwISQHGAYZoYLa8aPvCW6YS6Lt7cMI1TDVRUxw4t7w4vRrpmpMWxv IJZVgW4yUx5Qp+abJKgIciDN7OZQEGbn2XBs/H8uylL4hw6cgaqWRVeDEY2UBRNbQ2VD aIIwHdcLZhhQeftJ3eMITLrAF5IKLIQ8zvAQg= MIME-Version: 1.0 In-Reply-To: <1246910740.4643.10.camel@Joe-Laptop.home> References: <4A4C3410.8080704@kernel.org> <1246513356.28915.62.camel@Joe-Laptop.home> <1246556320.28915.92.camel@Joe-Laptop.home> <1246910740.4643.10.camel@Joe-Laptop.home> From: Mike Frysinger Date: Mon, 6 Jul 2009 16:23:31 -0400 Message-ID: <8bd0f97a0907061323j3480fa61sa7f44d71819a076d@mail.gmail.com> Subject: Re: [PATCH] Remove multiple KERN_ prefixes from printk formats To: Joe Perches Cc: Linus Torvalds , Yinghai Lu , Ingo Molnar , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2204 Lines: 54 On Mon, Jul 6, 2009 at 16:05, Joe Perches wrote: > commit 5fd29d6ccbc98884569d6f3105aeca70858b3e0f changed > printk semantics. printk lines with multiple KERN_ > prefixes are no longer emitted as before the patch. > > is now included in the output on each additional use. > > Remove all uses of multiple KERN_s in formats. thanks, i had started this in the Blackfin code a little, but your patch includes what i did and more, so the Blackfin stuff should be mostly fine (pending comments below). > --- a/arch/blackfin/kernel/traps.c > +++ b/arch/blackfin/kernel/traps.c > @@ -212,7 +212,7 @@ asmlinkage void double_fault_c(struct pt_regs *fp) >        console_verbose(); >        oops_in_progress = 1; >  #ifdef CONFIG_DEBUG_VERBOSE > -       printk(KERN_EMERG "\n" KERN_EMERG "Double Fault\n"); > +       printk(KERN_EMERG "Double Fault\n"); dropped a newline. we've largely made sure the newlines and such were as we want in the output ... in this case, it is not a matter of adding a newline where one did not exist before > -                       verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "Kernel Stack\n"); > +                       verbose_printk(KERN_NOTICE "Kernel Stack\n"); and here > -               verbose_printk(KERN_NOTICE "\n" KERN_NOTICE > -                    "No Valid process in current context\n"); > +               verbose_printk(KERN_NOTICE > +                              "No Valid process in current context\n"); and here > -       verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted()); > +       verbose_printk(KERN_NOTICE "\nSEQUENCER STATUS:\t\t%s\n", > +                      print_tainted()); and here > -       verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "PROCESSOR STATE:\n"); > +       verbose_printk(KERN_NOTICE "PROCESSOR STATE:\n"); and here -mike -- 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/