summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-14 16:51:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-14 16:51:49 +0000
commitd4ee2487fe6d8f2af7539a86993a5650317ba9fb (patch)
tree2e075f625955b2f258b56fc723067de99fbaf150 /sys
parent8195cd43b8df84799b3be56b066f3c7dd4cb5e03 (diff)
kill agregate messages; reported by stephen@etunnels.com
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/ubsec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index 38a6529eeb7..d81f9f17056 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.48 2001/05/14 02:45:19 deraadt Exp $ */
+/* $OpenBSD: ubsec.c,v 1.49 2001/05/14 16:51:48 deraadt Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -305,7 +305,9 @@ int
ubsec_feed(sc)
struct ubsec_softc *sc;
{
+#ifdef UBSEC_DEBUG
static int max;
+#endif
struct ubsec_q *q;
struct ubsec_mcr *mcr;
int npkts, i, l;
@@ -327,13 +329,13 @@ ubsec_feed(sc)
#ifdef UBSEC_DEBUG
printf("merging %d records\n", npkts);
-#endif
/* XXX temporary aggregation statistics reporting code */
if (max < npkts) {
max = npkts;
printf("%s: new max aggregate %d\n", sc->sc_dv.dv_xname, max);
}
+#endif
for (mcr2 = mcr, i = 0; i < npkts; i++) {
q = SIMPLEQ_FIRST(&sc->sc_queue);