From a662402bac1b52fb00c1e1803346b65725a8bebf Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 31 Oct 2008 10:07:43 -0700 Subject: [PATCH] Improve the error message when vconn gets an unexpected version. --- lib/vconn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vconn.c b/lib/vconn.c index b37656a7..e9e57d7f 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -468,11 +468,11 @@ do_recv(struct vconn *vconn, struct ofpbuf **msgp) && oh->type != OFPT_VENDOR) { if (vconn->version < 0) { - VLOG_ERR_RL(&rl, "%s: received OpenFlow version %02"PRIx8" " + VLOG_ERR_RL(&rl, "%s: received OpenFlow message type %"PRIu8" " "before version negotiation complete", - vconn->name, oh->version); + vconn->name, oh->type); } else { - VLOG_ERR_RL(&rl, "%s: received OpenFlow version %02"PRIx8" " + VLOG_ERR_RL(&rl, "%s: received OpenFlow version 0x%02"PRIx8" " "!= expected %02x", vconn->name, oh->version, vconn->version); } -- 2.30.2