[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] ixen-netback: fix trivial printf format build warning

Fix following trivial build warning:

drivers/net/xen-netback/netback.c: In function âxenvif_tx_dealloc_actionâ:
drivers/net/xen-netback/netback.c:1585:8: warning:
format â%xâ expects argument of type
 âunsigned intâ, but argument 3 has type âlong intâ [-Wformat=]
        gop - vif->tx_unmap_ops, ret);

Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx>
 drivers/net/xen-netback/netback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/xen-netback/netback.c 
index 5a8c4a4..90001b3 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -1574,7 +1574,7 @@ static inline void xenvif_tx_dealloc_action(struct xenvif 
                                        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 %lx 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)

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.