]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fix size_t printing
authorEric Leblond <eric@regit.org>
Fri, 20 Dec 2013 09:22:25 +0000 (10:22 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 13:46:38 +0000 (14:46 +0100)
This two problem were found by the new version of the size_t cocci
test.

src/source-mpipe.c
src/util-pool-thread.c

index acda2dedc6950770a5dbbb6acad8a95d943cb4fb..b42bf0be2f70f48bf8e366ba874b284285847efc 100644 (file)
@@ -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.
      */
index d41f0173a99e117f003188dac22c97126150626b..32099a94839865ce0556fe8b4f8d4054e7b4cf3f 100644 (file)
@@ -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) {