i prefer this fix for the -Wformat warning (just one cast,
all the other variables are already correct for %x). My previous attempt put the cast in the wrong place.
This commit is contained in:
parent
05711779ce
commit
c0099de7f5
@ -161,11 +161,9 @@ netmap_ofstophys(vm_offset_t offset)
|
||||
return p[i]->lut[offset / p[i]->_objsize].paddr +
|
||||
offset % p[i]->_objsize;
|
||||
}
|
||||
D("invalid ofs 0x%jx out of 0x%jx 0x%jx 0x%jx", (uintmax_t)o,
|
||||
(uintmax_t)p[0]->_memtotal,
|
||||
(uintmax_t)(p[0]->_memtotal + p[1]->_memtotal),
|
||||
(uintmax_t)(p[0]->_memtotal + p[1]->_memtotal +
|
||||
p[2]->_memtotal));
|
||||
D("invalid ofs 0x%x out of 0x%x 0x%x 0x%x", (u_int)o,
|
||||
p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal,
|
||||
p[0]->_memtotal + p[1]->_memtotal + p[2]->_memtotal);
|
||||
return 0; // XXX bad address
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user