From 5f21d20e65f1846c346704ac7c749a3f0ad8660e Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 16 Nov 2009 15:26:31 -0800 Subject: [PATCH] vconn: Fix endian issue in unknown action type error message --- lib/vconn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vconn.c b/lib/vconn.c index 85fbb26c..b11650fb 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -1282,7 +1282,8 @@ check_action(const union ofp_action *a, unsigned int len, int max_ports) break; default: - VLOG_WARN_RL(&bad_ofmsg_rl, "unknown action type %"PRIu16, a->type); + VLOG_WARN_RL(&bad_ofmsg_rl, "unknown action type %"PRIu16, + ntohs(a->type)); return ofp_mkerr(OFPET_BAD_ACTION, OFPBAC_BAD_TYPE); } -- 2.30.2