vconn: Fix endian issue in unknown action type error message
authorJustin Pettit <jpettit@nicira.com>
Mon, 16 Nov 2009 23:26:31 +0000 (15:26 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 02:48:28 +0000 (18:48 -0800)
lib/vconn.c

index 85fbb26..b11650f 100644 (file)
@@ -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);
     }