summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@cvs.openbsd.org>2017-01-17 16:54:41 +0000
committerRafael Zalamena <rzalamena@cvs.openbsd.org>2017-01-17 16:54:41 +0000
commit7c10dee0f39202a2e6717ce9620da1833958c42d (patch)
tree2ee707381fff6d96896394b3739c9ebdb69f83c8
parente0daa04fc1ffc184a070f939386e58640c6abee0 (diff)
Make switch(4) compile with debug again.
-rw-r--r--sys/net/switchofp.c10
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);
}