diff options
author | 2016-11-03 15:01:53 +0000 | |
---|---|---|
committer | 2016-11-03 15:01:53 +0000 | |
commit | 61b359f133a6f1f3650e3f76f74b668e1668f1c1 (patch) | |
tree | d9066e7c1135a748ee35288e97fed60d7252366f | |
parent | Add locks to key-value pair pools (diff) | |
download | wireguard-openbsd-61b359f133a6f1f3650e3f76f74b668e1668f1c1.tar.xz wireguard-openbsd-61b359f133a6f1f3650e3f76f74b668e1668f1c1.zip |
Fix debug message to print the presence of more flag correctly.
ok mikeb@
-rw-r--r-- | sys/net/switchofp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/switchofp.c b/sys/net/switchofp.c index 841b99ec4e5..48d98e6cf02 100644 --- a/sys/net/switchofp.c +++ b/sys/net/switchofp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switchofp.c,v 1.24 2016/11/03 09:17:47 rzalamena Exp $ */ +/* $OpenBSD: switchofp.c,v 1.25 2016/11/03 15:01:53 rzalamena Exp $ */ /* * Copyright (c) 2016 Kazuya GODA <goda@openbsd.org> @@ -5336,8 +5336,8 @@ swofp_multipart_reply(struct switch_softc *sc, struct swofp_mpmsg *swmp) VDPRINTF(sc, "Multipart-Reply type=%s more=%s xid=%x\n", swofp_mpmtype_str(ntohs(omp->mp_type)), - ((omp->mp_flags & OFP_T_MULTIPART_REQUEST) ? "yes" : "no"), - ntohl(omp->mp_oh.oh_xid)); + (ntohs(omp->mp_flags) & OFP_MP_FLAG_REPLY_MORE) ? + "yes" : "no", ntohl(omp->mp_oh.oh_xid)); (void)swofp_output(sc, hdr); } |