fix compiler warning for printf format

remotes/origin/master-1.1.x
Anoop Saldanha 14 years ago committed by Victor Julien
parent bc5c9f4a52
commit dcaef183e8

@ -926,7 +926,7 @@ void FlowInitConfig(char quiet)
SC_ATOMIC_ADD(flow_memuse, (flow_config.hash_size * sizeof(FlowBucket))); SC_ATOMIC_ADD(flow_memuse, (flow_config.hash_size * sizeof(FlowBucket)));
if (quiet == FALSE) { if (quiet == FALSE) {
SCLogInfo("allocated %" PRIu64 " bytes of memory for the flow hash... " SCLogInfo("allocated %llu bytes of memory for the flow hash... "
"%" PRIu32 " buckets of size %" PRIuMAX "", "%" PRIu32 " buckets of size %" PRIuMAX "",
SC_ATOMIC_GET(flow_memuse), flow_config.hash_size, SC_ATOMIC_GET(flow_memuse), flow_config.hash_size,
(uintmax_t)sizeof(FlowBucket)); (uintmax_t)sizeof(FlowBucket));
@ -950,7 +950,7 @@ void FlowInitConfig(char quiet)
if (quiet == FALSE) { if (quiet == FALSE) {
SCLogInfo("preallocated %" PRIu32 " flows of size %" PRIuMAX "", SCLogInfo("preallocated %" PRIu32 " flows of size %" PRIuMAX "",
flow_spare_q.len, (uintmax_t)sizeof(Flow)); flow_spare_q.len, (uintmax_t)sizeof(Flow));
SCLogInfo("flow memory usage: %"PRIu64" bytes, maximum: %"PRIu64, SCLogInfo("flow memory usage: %llu bytes, maximum: %"PRIu64,
SC_ATOMIC_GET(flow_memuse), flow_config.memcap); SC_ATOMIC_GET(flow_memuse), flow_config.memcap);
} }

Loading…
Cancel
Save