From: Tom Peters Date: Thu, 5 Jun 2014 18:20:58 +0000 (-0400) Subject: fixed a compiler warning X-Git-Tag: 3.0.0-233~1495^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0a87da4cc240940bf844491e583b18016b984ba;p=thirdparty%2Fsnort3.git fixed a compiler warning --- diff --git a/src/service_inspectors/nhttp_inspect/nhttp_msg_section.cc b/src/service_inspectors/nhttp_inspect/nhttp_msg_section.cc index 255b4423d..39f44c687 100644 --- a/src/service_inspectors/nhttp_inspect/nhttp_msg_section.cc +++ b/src/service_inspectors/nhttp_inspect/nhttp_msg_section.cc @@ -97,7 +97,7 @@ void NHttpMsgSection::printMessageTitle(FILE *output, const char *title) const { } void NHttpMsgSection::printMessageWrapup(FILE *output) const { - fprintf(output, "Infractions: %lx, TCP Close: %s\n", infractions, tcpClose ? "True" : "False"); + fprintf(output, "Infractions: %" PRIx64 ", TCP Close: %s\n", infractions, tcpClose ? "True" : "False"); fprintf(output, "Interface to old clients. http_mask = %x.\n", http_mask); for (int i=0; i < HTTP_BUFFER_MAX; i++) { if ((1 << i) & http_mask) printInterval(output, http_buffer_name[i], http_buffer[i].buf, http_buffer[i].length);