]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: minor format string fixes 7392/head
authorVictor Julien <vjulien@oisf.net>
Thu, 5 May 2022 08:41:15 +0000 (10:41 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 9 May 2022 14:07:37 +0000 (16:07 +0200)
src/app-layer-htp.c

index fcdd7eba1d9c2c60fe3b7bae40a3cf48218240ee..c6cb2bc794f69bffa506b22b1f2dd4b41285b8c9 100644 (file)
@@ -2515,12 +2515,9 @@ static void HTPConfigSetDefaultsPhase2(const char *name, HTPCfgRec *cfg_prec)
         cfg_prec->request.inspect_window += (int)(cfg_prec->request.inspect_window *
                                                   ((double)r / RAND_MAX - 0.5) * rdrange / 100);
         SCLogConfig("'%s' server has 'request-body-minimal-inspect-size' set to"
-                  " %d and 'request-body-inspect-window' set to %d after"
-                  " randomization.",
-                  name,
-                  cfg_prec->request.inspect_min_size,
-                  cfg_prec->request.inspect_window);
-
+                    " %u and 'request-body-inspect-window' set to %u after"
+                    " randomization.",
+                name, cfg_prec->request.inspect_min_size, cfg_prec->request.inspect_window);
 
         r = RandomGetWrap();
         cfg_prec->response.inspect_min_size += (int)(cfg_prec->response.inspect_min_size *
@@ -2531,11 +2528,9 @@ static void HTPConfigSetDefaultsPhase2(const char *name, HTPCfgRec *cfg_prec)
                                                    ((double)r / RAND_MAX - 0.5) * rdrange / 100);
 
         SCLogConfig("'%s' server has 'response-body-minimal-inspect-size' set to"
-                  " %d and 'response-body-inspect-window' set to %d after"
-                  " randomization.",
-                  name,
-                  cfg_prec->response.inspect_min_size,
-                  cfg_prec->response.inspect_window);
+                    " %u and 'response-body-inspect-window' set to %u after"
+                    " randomization.",
+                name, cfg_prec->response.inspect_min_size, cfg_prec->response.inspect_window);
     }
 
     htp_config_register_request_line(cfg_prec->cfg, HTPCallbackRequestLine);