[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140710130805.GC15340@saruman.home>
Date: Thu, 10 Jul 2014 08:08:05 -0500
From: Felipe Balbi <balbi@...com>
To: <varkabhadram@...il.com>
CC: <netdev@...r.kernel.org>, <mugunthanvnm@...com>,
<linux@...nbow-software.org>, <balbi@...com>,
<george.cherian@...com>, <davem@...emloft.net>,
Varka Bhadram <varkab@...c.in>
Subject: Re: [PATCH net v2 3/7] net: cpmac: dynamic debug fixes
On Thu, Jul 10, 2014 at 11:05:41AM +0530, varkabhadram@...il.com wrote:
> From: Varka Bhadram <varkab@...c.in>
>
> This patch does the following changes
> 1. convert printk(KERN_DEBUG.. to netdev_dbg() if we have net_device object
> or convert to dev_dbg() if we have device object.
> 2. convert printk(KERN_WARNING.. to netdev_warn() if we have net_device object
> or convert to dev_warn() if we have device object
> 3. convert printk() to pr_*
>
> Signed-off-by: Varka Bhadram <varkab@...c.in>
> ---
> drivers/net/ethernet/ti/cpmac.c | 136 ++++++++++++++++++---------------------
> 1 file changed, 62 insertions(+), 74 deletions(-)
>
> diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c
> index 1d8ef39..9faf669 100644
> --- a/drivers/net/ethernet/ti/cpmac.c
> +++ b/drivers/net/ethernet/ti/cpmac.c
> @@ -228,21 +228,20 @@ static void cpmac_dump_regs(struct net_device *dev)
> if (i % 16 == 0) {
> if (i)
> pr_cont("\n");
> - printk(KERN_DEBUG "%s: reg[%p]:", dev->name,
> - priv->regs + i);
> + netdev_dbg(dev, "reg[%p]:", priv->regs + i);
> }
> - printk(" %08x", cpmac_read(priv->regs, i));
> + pr_debug(" %08x", cpmac_read(priv->regs, i));
looks like this should be pr_cont()
> }
> - printk("\n");
> + pr_debug("\n");
same here. Ditto to all below
--
balbi
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists