From 21fff41626efc52861648edfe00c6ceecaa3a59c Mon Sep 17 00:00:00 2001 From: Miguel Figueiredo Date: Tue, 4 Jun 2013 19:54:29 +0200 Subject: Fix format warnings * vm/vm_resident.c (pmap_startup): Fix printf format. * xen/block.c (hyp_block_init, device_write): Likewise. * xen/net.c (hyp_net_init): Likewise. --- xen/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xen/net.c') diff --git a/xen/net.c b/xen/net.c index 10e4bbe..fb26471 100644 --- a/xen/net.c +++ b/xen/net.c @@ -366,7 +366,7 @@ void hyp_net_init(void) { grant = hyp_grant_give(domid, atop(addr), 0); /* and give it to backend. */ - i = sprintf(port_name, "%u", grant); + i = sprintf(port_name, "%d", grant); c = hyp_store_write(t, port_name, 5, VIF_PATH, "/", vifs[n], "/", "tx-ring-ref"); if (!c) panic("eth: couldn't store tx_ring reference for VIF %s (%s)", vifs[n], hyp_store_error); @@ -381,7 +381,7 @@ void hyp_net_init(void) { grant = hyp_grant_give(domid, atop(addr), 0); /* and give it to backend. */ - i = sprintf(port_name, "%u", grant); + i = sprintf(port_name, "%d", grant); c = hyp_store_write(t, port_name, 5, VIF_PATH, "/", vifs[n], "/", "rx-ring-ref"); if (!c) panic("eth: couldn't store rx_ring reference for VIF %s (%s)", vifs[n], hyp_store_error); -- cgit v1.2.3