From e4f85ecc2a1e2af3cf27c12e6d6152c634b91178 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 18 Jan 2023 11:45:44 -0600 Subject: [PATCH] log-pcap: display mininum limit on error On fatal error due to limit being less than the allowed minimum, display the minimum value in bytes. --- src/log-pcap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/log-pcap.c b/src/log-pcap.c index 391e00196e..7dd74deef0 100644 --- a/src/log-pcap.c +++ b/src/log-pcap.c @@ -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); } } }