]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log-pcap: display mininum limit on error
authorJason Ish <jason.ish@oisf.net>
Wed, 18 Jan 2023 17:45:44 +0000 (11:45 -0600)
committerVictor Julien <vjulien@oisf.net>
Tue, 24 Jan 2023 09:44:49 +0000 (10:44 +0100)
On fatal error due to limit being less than the allowed minimum,
display the minimum value in bytes.

src/log-pcap.c

index 391e00196e3d22119c9e553fe8891e9872a8d01f..7dd74deef0e1c650e1d804385d3d1812a7db3c79 100644 (file)
@@ -1394,7 +1394,8 @@ static OutputInitResult PcapLogInitCtx(ConfNode *conf)
                 pl->size_limit = size;
             } else if (pl->size_limit < MIN_LIMIT) {
                 FatalError("Fail to initialize pcap-log output, limit less than "
-                           "allowed minimum.");
+                           "allowed minimum of %d bytes.",
+                        MIN_LIMIT);
             }
         }
     }