Message ID | 20221025031236.1031330-2-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,1/2] net: natsemi: xtsonic: switch to use platform_get_irq() | expand |
On Tue, 25 Oct 2022 11:12:36 +0800 Yang Yingliang wrote:
> Use pr_err() instead of printk(KERN_ERR ...).
To what gain? Please don't pointlessly futz with old code.
diff --git a/drivers/net/ethernet/natsemi/xtsonic.c b/drivers/net/ethernet/natsemi/xtsonic.c index ffb3814c54cb..a31a67edc58c 100644 --- a/drivers/net/ethernet/natsemi/xtsonic.c +++ b/drivers/net/ethernet/natsemi/xtsonic.c @@ -90,7 +90,7 @@ static int xtsonic_open(struct net_device *dev) retval = request_irq(dev->irq, sonic_interrupt, 0, "sonic", dev); if (retval) { - printk(KERN_ERR "%s: unable to get IRQ %d.\n", + pr_err("%s: unable to get IRQ %d.\n", dev->name, dev->irq); return -EAGAIN; }
Use pr_err() instead of printk(KERN_ERR ...). Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/net/ethernet/natsemi/xtsonic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)