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.
pull/8430/head
Jason Ish 3 years ago committed by Victor Julien
parent 30d9d8c7f4
commit e4f85ecc2a

@ -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);
}
}
}

Loading…
Cancel
Save