can: ti_hecc: fix print formating strings
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 25 Jul 2019 13:11:32 +0000 (15:11 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Aug 2019 14:37:04 +0000 (16:37 +0200)
This patch fixes the print format strings in the driver.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c

index 2c2b2b7..652970b 100644 (file)
@@ -271,8 +271,8 @@ static int ti_hecc_set_btc(struct ti_hecc_priv *priv)
                if (bit_timing->brp > 4)
                        can_btc |= HECC_CANBTC_SAM;
                else
-                       netdev_warn(priv->ndev, "WARN: Triple"
-                               "sampling not set due to h/w limitations");
+                       netdev_warn(priv->ndev,
+                                   "WARN: Triple sampling not set due to h/w limitations");
        }
        can_btc |= ((bit_timing->sjw - 1) & 0x3) << 8;
        can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16;
@@ -562,7 +562,8 @@ static int ti_hecc_error(struct net_device *ndev, int int_status,
        if (!skb) {
                if (printk_ratelimit())
                        netdev_err(priv->ndev,
-                               "ti_hecc_error: alloc_can_err_skb() failed\n");
+                                  "%s: alloc_can_err_skb() failed\n",
+                                  __func__);
                return -ENOMEM;
        }