]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
warnings : Fixes integer sizes in format strings
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 20 Jun 2019 07:45:11 +0000 (09:45 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 21 Jun 2019 05:37:38 +0000 (07:37 +0200)
src/flow-manager.c

index cef8f6263235fae9d13ef5b1fe92e7e2c72a4765..54f5e5d64a243509bbb9bcd202f04fab87a14066 100644 (file)
@@ -275,7 +275,7 @@ static inline int FlowBypassedTimeout(Flow *f, struct timeval *ts,
         uint64_t bytes_todst = fc->todstbytecnt;
         bool update = fc->BypassUpdate(f, fc->bypass_data, ts->tv_sec);
         if (update) {
-            SCLogDebug("Updated flow: %ld", FlowGetId(f));
+            SCLogDebug("Updated flow: %"PRId64"", FlowGetId(f));
             pkts_tosrc = fc->tosrcpktcnt - pkts_tosrc;
             bytes_tosrc = fc->tosrcbytecnt - bytes_tosrc;
             pkts_todst = fc->todstpktcnt - pkts_todst;
@@ -288,7 +288,7 @@ static inline int FlowBypassedTimeout(Flow *f, struct timeval *ts,
             counters->bypassed_bytes += bytes_tosrc + bytes_todst;
             return 0;
         } else {
-            SCLogDebug("No new packet, dead flow %ld", FlowGetId(f));
+            SCLogDebug("No new packet, dead flow %"PRId64"", FlowGetId(f));
             if (f->livedev) {
                 if (FLOW_IS_IPV4(f)) {
                     LiveDevSubBypassStats(f->livedev, 1, AF_INET);