From: Justin Pettit Date: Mon, 16 Nov 2009 23:26:31 +0000 (-0800) Subject: vconn: Fix endian issue in unknown action type error message X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f21d20e65f1846c346704ac7c749a3f0ad8660e;p=openvswitch vconn: Fix endian issue in unknown action type error message --- 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); }