fix size_t printing

This two problem were found by the new version of the size_t cocci
test.
pull/757/head
Eric Leblond 12 years ago committed by Victor Julien
parent 446e68adca
commit 8a5a30ba40

@ -554,7 +554,7 @@ static TmEcode ReceiveMpipeAllocatePacketBuffers(void)
}
assert(packet_page);
void* packet_mem = packet_page;
SCLogInfo("DEBUG: tile_vhuge_size %lu", tile_vhuge_size);
SCLogInfo("DEBUG: tile_vhuge_size %"PRIuMAX, (uintmax_t)tile_vhuge_size);
/* Allocate one Huge page just to store buffer stacks, since they are
* only ever accessed by mPipe.
*/

@ -96,7 +96,7 @@ int PoolThreadGrow(PoolThread *pt, uint32_t size, uint32_t prealloc_size, uint32
}
newsize = pt->size + 1;
SCLogDebug("newsize %lu", newsize);
SCLogDebug("newsize %"PRIuMAX, (uintmax_t)newsize);
ptmp = SCRealloc(pt->array, (newsize * sizeof(PoolThreadElement)));
if (ptmp == NULL) {

Loading…
Cancel
Save