[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190524195249.GO21208@lunn.ch>
Date: Fri, 24 May 2019 21:52:49 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Krzysztof Halasa <khalasa@...p.pl>
Subject: Re: [PATCH 3/8] net: ehernet: ixp4xx: Use devm_alloc_etherdev()
> @@ -1481,8 +1478,8 @@ static int ixp4xx_eth_probe(struct platform_device *pdev)
> if ((err = register_netdev(ndev)))
> goto err_phy_dis;
>
> - printk(KERN_INFO "%s: MII PHY %i on %s\n", ndev->name, plat->phy,
> - npe_name(port->npe));
> + dev_info(dev, "%s: MII PHY %i on %s\n", ndev->name, plat->phy,
> + npe_name(port->npe));
Hi Linus
If you get here, the interface has been registered. So you could use
netdev_info(ndev, ...). You can also call it before register_netdev,
but since the name as not yet been determined, it is not so
informative as dev_err() which will give you the bus address or
something.
Andrew
Powered by blists - more mailing lists