diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-02 18:35:18 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-02 18:35:18 +0000 |
commit | d177e3681a31f358563d3f4bfbb751b40e1090eb (patch) | |
tree | 6bf565571de3f2b5e134837a22eee62dc96c3fb9 /lib/libpcap | |
parent | 7355916064bc8f0d820e4d8adeaa4ad3181d5a8f (diff) |
remove extra \n in bpf_error() calls.
figured out by claudio@
Diffstat (limited to 'lib/libpcap')
-rw-r--r-- | lib/libpcap/gencode.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index 1921febca55..d5519e5b896 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.27 2007/01/02 18:31:21 reyk Exp $ */ +/* $OpenBSD: gencode.c,v 1.28 2007/01/02 18:35:17 reyk Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -2981,7 +2981,7 @@ gen_inbound(dir) break; default: - bpf_error("inbound/outbound not supported on linktype 0x%x\n", + bpf_error("inbound/outbound not supported on linktype 0x%x", linktype); /* NOTREACHED */ } @@ -3004,11 +3004,11 @@ gen_pf_ifname(char *ifname) len = sizeof(((struct old_pfloghdr *)0)->ifname); off = offsetof(struct old_pfloghdr, ifname); } else { - bpf_error("ifname not supported on linktype 0x%x\n", linktype); + bpf_error("ifname not supported on linktype 0x%x", linktype); /* NOTREACHED */ } if (strlen(ifname) >= len) { - bpf_error("ifname interface names can only be %d characters\n", + bpf_error("ifname interface names can only be %d characters", len - 1); /* NOTREACHED */ } @@ -3024,11 +3024,11 @@ gen_pf_ruleset(char *ruleset) struct block *b0; if (linktype != DLT_PFLOG) { - bpf_error("ruleset not supported on linktype 0x%x\n", linktype); + bpf_error("ruleset not supported on linktype 0x%x", linktype); /* NOTREACHED */ } if (strlen(ruleset) >= sizeof(((struct pfloghdr *)0)->ruleset)) { - bpf_error("ruleset names can only be %d characters\n", + bpf_error("ruleset names can only be %d characters", sizeof(((struct pfloghdr *)0)->ruleset) - 1); /* NOTREACHED */ } @@ -3051,7 +3051,7 @@ gen_pf_rnr(int rnr) b0 = gen_cmp(offsetof(struct old_pfloghdr, rnr), BPF_H, (bpf_int32)rnr); } else { - bpf_error("rnr not supported on linktype 0x%x\n", linktype); + bpf_error("rnr not supported on linktype 0x%x", linktype); /* NOTREACHED */ } @@ -3066,7 +3066,7 @@ gen_pf_srnr(int srnr) struct block *b0; if (linktype != DLT_PFLOG) { - bpf_error("srnr not supported on linktype 0x%x\n", linktype); + bpf_error("srnr not supported on linktype 0x%x", linktype); /* NOTREACHED */ } @@ -3088,7 +3088,7 @@ gen_pf_reason(int reason) b0 = gen_cmp(offsetof(struct old_pfloghdr, reason), BPF_H, (bpf_int32)reason); } else { - bpf_error("reason not supported on linktype 0x%x\n", linktype); + bpf_error("reason not supported on linktype 0x%x", linktype); /* NOTREACHED */ } @@ -3108,7 +3108,7 @@ gen_pf_action(int action) b0 = gen_cmp(offsetof(struct old_pfloghdr, action), BPF_H, (bpf_int32)action); } else { - bpf_error("action not supported on linktype 0x%x\n", linktype); + bpf_error("action not supported on linktype 0x%x", linktype); /* NOTREACHED */ } |