Commit e9193bf0 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Luis Henriques

can: rcar_can: print signed IRQ #

commit c1a4c87b upstream.

Printing IRQ # using "%x" and "%u" unsigned formats isn't quite correct as
'ndev->irq' is of  type *int*, so  the "%d" format  needs to be used instead.

While fixing this, beautify the dev_info() message in rcar_can_probe() a bit.

Fixes: fd115931 ("can: add Renesas R-Car CAN driver")
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 0e1b541b
...@@ -517,7 +517,7 @@ static int rcar_can_open(struct net_device *ndev) ...@@ -517,7 +517,7 @@ static int rcar_can_open(struct net_device *ndev)
napi_enable(&priv->napi); napi_enable(&priv->napi);
err = request_irq(ndev->irq, rcar_can_interrupt, 0, ndev->name, ndev); err = request_irq(ndev->irq, rcar_can_interrupt, 0, ndev->name, ndev);
if (err) { if (err) {
netdev_err(ndev, "error requesting interrupt %x\n", ndev->irq); netdev_err(ndev, "error requesting interrupt %d\n", ndev->irq);
goto out_close; goto out_close;
} }
can_led_event(ndev, CAN_LED_EVENT_OPEN); can_led_event(ndev, CAN_LED_EVENT_OPEN);
...@@ -786,7 +786,7 @@ static int rcar_can_probe(struct platform_device *pdev) ...@@ -786,7 +786,7 @@ static int rcar_can_probe(struct platform_device *pdev)
devm_can_led_init(ndev); devm_can_led_init(ndev);
dev_info(&pdev->dev, "device registered (reg_base=%p, irq=%u)\n", dev_info(&pdev->dev, "device registered (regs @ %p, IRQ%d)\n",
priv->regs, ndev->irq); priv->regs, ndev->irq);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment