bpf filter: use SCLogError instead of fprintf

pull/334/merge
Eric Leblond 14 years ago committed by Victor Julien
parent b7e78d33b1
commit 539de3f5ea

@ -404,7 +404,7 @@ static void SetBpfString(int optind, char *argv[]) {
if(strlen(bpf_filter) > 0) { if(strlen(bpf_filter) > 0) {
if (ConfSet("bpf-filter", bpf_filter, 0) != 1) { if (ConfSet("bpf-filter", bpf_filter, 0) != 1) {
fprintf(stderr, "ERROR: Failed to set bpf filter.\n"); SCLogError(SC_ERR_FATAL, "Failed to set bpf filter.");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
} }

Loading…
Cancel
Save