From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH 1/2] OF: clean coding style - prom_parse.c Date: Sat, 03 May 2008 10:26:22 -0700 Message-ID: <1209835583.16966.10.camel@localhost> References: <1209827626-8562-1-git-send-email-monstr@seznam.cz> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from 136-022.dsl.labridge.com ([206.117.136.22]:1167 "EHLO mail.perches.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1761868AbYECR1X (ORCPT ); Sat, 3 May 2008 13:27:23 -0400 In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: monstr@seznam.cz Cc: paulus@samba.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Michal Simek On Sat, 2008-05-03 at 17:13 +0200, monstr@seznam.cz wrote: > /* Debug utility */ > #ifdef DEBUG > static void of_dump_addr(const char *s, const u32 *addr, int na) > { > - printk("%s", s); > - while(na--) > - printk(" %08x", *(addr++)); > - printk("\n"); > + printk(KERN_INFO "%s", s); > + while (na--) > + printk(KERN_INFO " %08x", *(addr++)); > + printk(KERN_INFO "\n"); > } You've prefixed KERN_INFO before every address block. How about: print_hex_dump(KERN_, s, DUMP_PREFIX_NONE, 4, addr, na, false);