diff options
author | David S. Miller <davem@davemloft.net> | 2014-03-26 03:02:16 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-26 03:02:16 +0400 |
commit | 2c5f4f8422e8cf3dd15638226e964f2e13132267 (patch) | |
tree | 61f744318ea7648422c4e35fe04c5b54b08dbc14 /drivers/net | |
parent | 397dfd9f93ccfe71660eafbaac651a96195c24ed (diff) | |
download | linux-2c5f4f8422e8cf3dd15638226e964f2e13132267.tar.xz |
xen-netback: Proper printf format for ptrdiff_t is 't'.
This fixes:
drivers/net/xen-netback/netback.c: In function ‘xenvif_tx_dealloc_action’:
drivers/net/xen-netback/netback.c:1573:8: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long int’ [-Wformat=]
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/xen-netback/netback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 1f595e51791e..1e4628724778 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -1569,7 +1569,7 @@ static inline void xenvif_tx_dealloc_action(struct xenvif *vif) vif->pages_to_unmap, gop - vif->tx_unmap_ops); if (ret) { - netdev_err(vif->dev, "Unmap fail: nr_ops %x ret %d\n", + netdev_err(vif->dev, "Unmap fail: nr_ops %tx ret %d\n", gop - vif->tx_unmap_ops, ret); for (i = 0; i < gop - vif->tx_unmap_ops; ++i) { if (gop[i].status != GNTST_okay) |