diff options
author | Miguel Figueiredo <elmig@debianpt.org> | 2013-06-04 19:54:29 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-06-04 19:54:29 +0200 |
commit | 21fff41626efc52861648edfe00c6ceecaa3a59c (patch) | |
tree | 946944e8f31accb6027cc25919070117b3b0b2c7 /xen/net.c | |
parent | e124fdce292d027b6b57cd10be41c37624313a90 (diff) | |
download | gnumach-21fff41626efc52861648edfe00c6ceecaa3a59c.tar.gz gnumach-21fff41626efc52861648edfe00c6ceecaa3a59c.tar.bz2 gnumach-21fff41626efc52861648edfe00c6ceecaa3a59c.zip |
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.
Diffstat (limited to 'xen/net.c')
-rw-r--r-- | xen/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |