[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B5965E6.8090109@jp.fujitsu.com>
Date: Fri, 22 Jan 2010 17:46:30 +0900
From: Taku Izumi <izumi.taku@...fujitsu.com>
To: Joe Perches <joe@...ches.com>
CC: netdev@...r.kernel.org, Bruce Allan <bruce.w.allan@...el.com>,
"David S. Miller" <davem@...emloft.net>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
John Ronciak <john.ronciak@...el.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
PJ Waskiewicz <peter.p.waskiewicz.jr@...el.com>,
Koki Sanagi <sanagi.koki@...fujitsu.com>,
Kenji Kaneshige <kaneshige.kenji@...fujitsu.com>,
chavey@...gle.com
Subject: Re: [PATCH v2 0/3] e1000e,igb,ixgbe: add registers etc. printout
code just before resetting adapters
(2010/01/22 15:25), Joe Perches wrote:
> Trivial:
>
> All of the printks without KERN_<level> should be KERN_CONT
>
> For example:
>
>> + printk(KERN_ERR "%-15s ", rname);
>> + for (n = 0; n< 2; n++)
>> + printk("%08x ", __er32(hw, get_regofs(n)));
>> + printk("\n");
>
> This should be:
>
> printk(KERN_ERR etc...)
> for (n = 0...)
> printk(KERN_CONT "%08x ", etc...
> printk(KERN_CONT "\n")
>
> or perhaps written without the for loop
>
> printk(KERN_ERR "%-15s %08x %08x\n",
> name, __er32(hw, get_regofs(0)), __er32(hw, get_regofs(1)));
>
Thank you for good information! I didn't realize that.
I'll rewrite all.
Best regards,
Taku Izumi
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists