Commit dfa9352d authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: ti_hecc: fix print formating strings

This patch fixes the print format strings in the driver.
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent ab3a78f6
...@@ -271,8 +271,8 @@ static int ti_hecc_set_btc(struct ti_hecc_priv *priv) ...@@ -271,8 +271,8 @@ static int ti_hecc_set_btc(struct ti_hecc_priv *priv)
if (bit_timing->brp > 4) if (bit_timing->brp > 4)
can_btc |= HECC_CANBTC_SAM; can_btc |= HECC_CANBTC_SAM;
else else
netdev_warn(priv->ndev, "WARN: Triple" netdev_warn(priv->ndev,
"sampling not set due to h/w limitations"); "WARN: Triple sampling not set due to h/w limitations");
} }
can_btc |= ((bit_timing->sjw - 1) & 0x3) << 8; can_btc |= ((bit_timing->sjw - 1) & 0x3) << 8;
can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16; can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16;
...@@ -562,7 +562,8 @@ static int ti_hecc_error(struct net_device *ndev, int int_status, ...@@ -562,7 +562,8 @@ static int ti_hecc_error(struct net_device *ndev, int int_status,
if (!skb) { if (!skb) {
if (printk_ratelimit()) if (printk_ratelimit())
netdev_err(priv->ndev, netdev_err(priv->ndev,
"ti_hecc_error: alloc_can_err_skb() failed\n"); "%s: alloc_can_err_skb() failed\n",
__func__);
return -ENOMEM; return -ENOMEM;
} }
......
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