staging: fsl-dpaa2/eth: Error report format fixes
authorBogdan Purcareata <bogdan.purcareata@nxp.com>
Thu, 20 Jul 2017 10:58:38 +0000 (10:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 15:25:04 +0000 (08:25 -0700)
Fix mishaps in error format strings.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c

index 0f3e497254a7b9c44e9ca1a47b48eb2c55311062..26017fe9df93612441b1b461b721b07beb9280ef 100644 (file)
@@ -656,7 +656,7 @@ static void dpaa2_eth_tx_conf(struct dpaa2_eth_priv *priv,
                has_fas_errors = (fd_errors & DPAA2_FD_CTRL_FAERR) &&
                                 !!(dpaa2_fd_get_frc(fd) & DPAA2_FD_FRC_FASV);
                if (net_ratelimit())
-                       netdev_dbg(priv->net_dev, "TX frame FD error: %x08\n",
+                       netdev_dbg(priv->net_dev, "TX frame FD error: 0x%08x\n",
                                   fd_errors);
        }
 
@@ -670,7 +670,7 @@ static void dpaa2_eth_tx_conf(struct dpaa2_eth_priv *priv,
        percpu_stats->tx_errors++;
 
        if (has_fas_errors && net_ratelimit())
-               netdev_dbg(priv->net_dev, "TX frame FAS error: %x08\n",
+               netdev_dbg(priv->net_dev, "TX frame FAS error: 0x%08x\n",
                           status & DPAA2_FAS_TX_ERR_MASK);
 }