xen-netback: Proper printf format for ptrdiff_t is 't'.
authorDavid S. Miller <davem@davemloft.net>
Tue, 25 Mar 2014 23:02:16 +0000 (19:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Mar 2014 23:02:16 +0000 (19:02 -0400)
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>
drivers/net/xen-netback/netback.c

index 1f595e51791e83befb68f5c28a8092325771f24f..1e46287247784595bdcd6635c2c66df878fa6d57 100644 (file)
@@ -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)