[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1365871779.2358.3.camel@joe-AO722>
Date: Sat, 13 Apr 2013 09:49:39 -0700
From: Joe Perches <joe@...ches.com>
To: Fabio Estevam <festevam@...il.com>
Cc: davem@...emloft.net, Frank.Li@...escale.com,
netdev@...r.kernel.org, Fabio Estevam <fabio.estevam@...escale.com>
Subject: Re: [PATCH] fec: Fix PHC device log
On Sat, 2013-04-13 at 13:38 -0300, Fabio Estevam wrote:
> Currently when booting a mx6 device we get the following on boot:
> registered PHC device on eth%d
[]
> diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c
[]
> @@ -380,6 +380,6 @@ void fec_ptp_init(struct net_device *ndev, struct platform_device *pdev)
> fep->ptp_clock = NULL;
> pr_err("ptp_clock_register failed\n");
> } else {
> - pr_info("registered PHC device on %s\n", ndev->name);
> + pr_info("registered PHC device on eth%d\n", fep->dev_id);
Maybe better as:
netdev_info(ndev, "registered PHC device %d\n", fep->dev_id);
--
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