]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed a compiler warning
authorTom Peters <thopeter@cisco.com>
Thu, 5 Jun 2014 18:20:58 +0000 (14:20 -0400)
committerTom Peters <thopeter@cisco.com>
Thu, 5 Jun 2014 18:20:58 +0000 (14:20 -0400)
src/service_inspectors/nhttp_inspect/nhttp_msg_section.cc

index 255b4423d19c9b81027098b2a272a8d5e4c511f6..39f44c68748cb5db1b54b6e2385c0a6b7b347929 100644 (file)
@@ -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);