diff options
author | luigi <luigi@FreeBSD.org> | 2012-04-13 22:24:57 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2012-04-13 22:24:57 +0000 |
commit | c185a54ef0533cec95acb9b6a475abf7bbabef63 (patch) | |
tree | f58fb1869df32fce4be0160b7a91dc74a7e32f6b /sys/dev | |
parent | 78f7a45a3a539656c95935b3646b1b1098cebd5f (diff) | |
download | FreeBSD-src-c185a54ef0533cec95acb9b6a475abf7bbabef63.zip FreeBSD-src-c185a54ef0533cec95acb9b6a475abf7bbabef63.tar.gz |
fix build with -Wformat -Wmissing-prototypes
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/netmap/netmap_mem2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/netmap/netmap_mem2.c b/sys/dev/netmap/netmap_mem2.c index a307ec7..1dec49c 100644 --- a/sys/dev/netmap/netmap_mem2.c +++ b/sys/dev/netmap/netmap_mem2.c @@ -162,7 +162,7 @@ netmap_ofstophys(vm_offset_t offset) offset % p[i]->_objsize; } D("invalid ofs 0x%x out of 0x%x 0x%x 0x%x", o, - p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal, + (u_int)p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal, p[0]->_memtotal + p[1]->_memtotal + p[2]->_memtotal); return 0; // XXX bad address } @@ -173,7 +173,7 @@ netmap_ofstophys(vm_offset_t offset) * Algorithm: scan until we find the cluster, then add the * actual offset in the cluster */ -ssize_t +static ssize_t netmap_obj_offset(struct netmap_obj_pool *p, const void *vaddr) { int i, k = p->clustentries, n = p->objtotal; |