diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-02 02:31:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-02 02:31:08 +0000 |
commit | 9250186e6c38da580172d873c863932a401df593 (patch) | |
tree | db32b108ddedaa2cdb3c22269af60324c0520d25 /sys/net | |
parent | bb486265002caeae0a17a6d2f15cb2c081534459 (diff) |
conditional error logging
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/encap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/encap.c b/sys/net/encap.c index 5a08ed23c62..9a26959d593 100644 --- a/sys/net/encap.c +++ b/sys/net/encap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: encap.c,v 1.16 1997/09/28 22:57:52 deraadt Exp $ */ +/* $OpenBSD: encap.c,v 1.17 1997/10/02 02:31:01 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -876,7 +876,8 @@ encap_sendnotify(int subtype, struct tdb *tdbp) m = m_gethdr(M_DONTWAIT, MT_DATA); if (m == NULL) { - log(LOG_ERR, "encap_sendnotify(): m_gethdr() returned NULL\n"); + if (encdebug) + log(LOG_ERR, "encap_sendnotify(): m_gethdr() returned NULL\n"); return; } |