From: Eric Leblond Date: Fri, 20 Dec 2013 09:22:25 +0000 (+0100) Subject: fix size_t printing X-Git-Tag: suricata-2.0rc1~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5a30ba40d6c8e65a3c76e20e1494af50003a84;p=thirdparty%2Fsuricata.git fix size_t printing This two problem were found by the new version of the size_t cocci test. --- diff --git a/src/source-mpipe.c b/src/source-mpipe.c index acda2dedc6..b42bf0be2f 100644 --- a/src/source-mpipe.c +++ b/src/source-mpipe.c @@ -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. */ diff --git a/src/util-pool-thread.c b/src/util-pool-thread.c index d41f0173a9..32099a9483 100644 --- a/src/util-pool-thread.c +++ b/src/util-pool-thread.c @@ -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) {