From: Jeff Lucovsky Date: Fri, 26 Jul 2019 22:44:27 +0000 (-0700) Subject: cleanup: eliminate warnings/errors with debug build on macos X-Git-Tag: suricata-5.0.0-rc1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be22b23d2e9cecdc8775841db7cd7c1db12d9e1f;p=thirdparty%2Fsuricata.git cleanup: eliminate warnings/errors with debug build on macos --- diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index 33c715b70c..48800bf324 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -459,8 +459,8 @@ static void IPOnlyCIDRListPrint(IPOnlyCIDRItem *tmphead) while (tmphead != NULL) { i++; - SCLogDebug("Item %"PRIu32" has netmask %"PRIu16" negated:" - " %s; IP: %s; signum: %"PRIu16, i, tmphead->netmask, + SCLogDebug("Item %"PRIu32" has netmask %"PRIu8" negated:" + " %s; IP: %s; signum: %"PRIu32, i, tmphead->netmask, (tmphead->negated) ? "yes":"no", inet_ntoa(*(struct in_addr*)&tmphead->ip[0]), tmphead->signum); diff --git a/src/detect-flowint.c b/src/detect-flowint.c index 42d5a3b7a3..e2cf15731b 100644 --- a/src/detect-flowint.c +++ b/src/detect-flowint.c @@ -436,7 +436,7 @@ static void DetectFlowintPrintData(DetectFlowintData *sfd) return; } - SCLogDebug("Varname: %s, modifier: %"PRIu8", idx: %"PRIu16" Target: ", + SCLogDebug("Varname: %s, modifier: %"PRIu8", idx: %"PRIu32" Target: ", sfd->name, sfd->modifier, sfd->idx); switch(sfd->targettype) { case FLOWINT_TARGET_VAR: diff --git a/src/detect-tcpmss.c b/src/detect-tcpmss.c index 4aa0c58a06..71337d9e20 100644 --- a/src/detect-tcpmss.c +++ b/src/detect-tcpmss.c @@ -183,7 +183,7 @@ static DetectTcpmssData *DetectTcpmssParse (const char *tcpmssstr) tcpmssd->mode = DETECT_TCPMSS_LT; tcpmssd->arg1 = (uint16_t) atoi(arg3); - SCLogDebug("tcpmss is %"PRIu8"",tcpmssd->arg1); + SCLogDebug("tcpmss is %"PRIu16"",tcpmssd->arg1); if (strlen(arg1) > 0) goto error; @@ -195,7 +195,7 @@ static DetectTcpmssData *DetectTcpmssParse (const char *tcpmssstr) tcpmssd->mode = DETECT_TCPMSS_GT; tcpmssd->arg1 = (uint16_t) atoi(arg3); - SCLogDebug("tcpmss is %"PRIu8"",tcpmssd->arg1); + SCLogDebug("tcpmss is %"PRIu16"",tcpmssd->arg1); if (strlen(arg1) > 0) goto error;