diff options
author | 2017-01-17 16:54:40 +0000 | |
---|---|---|
committer | 2017-01-17 16:54:40 +0000 | |
commit | 4f704a96822b0f6f70f0e96d85557a417dfe50c9 (patch) | |
tree | 3fadca078a64be9c607d8b44292f0338ed610c2f | |
parent | Initialize swas_actions for set-field with the expected pointer to the (diff) | |
download | wireguard-openbsd-4f704a96822b0f6f70f0e96d85557a417dfe50c9.tar.xz wireguard-openbsd-4f704a96822b0f6f70f0e96d85557a417dfe50c9.zip |
Make switch(4) compile with debug again.
-rw-r--r-- | sys/net/switchofp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/switchofp.c b/sys/net/switchofp.c index 500195d96a6..19754c6435b 100644 --- a/sys/net/switchofp.c +++ b/sys/net/switchofp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switchofp.c,v 1.57 2017/01/17 16:47:55 rzalamena Exp $ */ +/* $OpenBSD: switchofp.c,v 1.58 2017/01/17 16:54:40 rzalamena Exp $ */ /* * Copyright (c) 2016 Kazuya GODA <goda@openbsd.org> @@ -1599,8 +1599,8 @@ swofp_flow_timeout(struct switch_softc *sc) if (swfe->swfe_idle_timeout) { timespecsub(&now, &swfe->swfe_idle_time, &idle); if (swfe->swfe_idle_timeout < idle.tv_sec) { - DPRINTF(sc, "flow(id:%d) expired " - "by idle timeout\n", swfe->swfe_id); + DPRINTF(sc, "flow expired " + "by idle timeout\n"); swofp_flow_entry_delete(sc, swft, swfe, OFP_FLOWREM_REASON_IDLE_TIMEOUT); continue; @@ -1610,8 +1610,8 @@ swofp_flow_timeout(struct switch_softc *sc) timespecsub(&now, &swfe->swfe_installed_time, &duration); if (swfe->swfe_hard_timeout < duration.tv_sec) { - DPRINTF(sc, "flow(id:%d) expired " - "by hard timeout\n", swfe->swfe_id); + DPRINTF(sc, "flow expired " + "by hard timeout\n"); swofp_flow_entry_delete(sc, swft, swfe, OFP_FLOWREM_REASON_HARD_TIMEOUT); } |