static void
ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah)
{
- uint16_t subtype = ntohs(nah->subtype);
+ int subtype = ntohs(nah->subtype);
int required_len = nx_action_len(subtype);
int len = ntohs(nah->len);
}
}
- ds_put_format(string, "***unknown Nicira action:%"PRIu16"***", subtype);
+ ds_put_format(string, "***unknown Nicira action:%d***", subtype);
}
static int
const struct flow *flow)
{
const struct nx_action_header *nah;
- uint16_t subtype;
+ int subtype;
int error;
if (len < 16) {
subtype = ntohs(nah->subtype);
if (subtype > TYPE_MAXIMUM(enum nx_action_subtype)) {
- /* This is necessary because enum nx_action_subtype is probably an
+ /* This is necessary because enum nx_action_subtype may be an
* 8-bit type, so the cast below throws away the top 8 bits. */
return ofp_mkerr(OFPET_BAD_ACTION, OFPBAC_BAD_VENDOR_TYPE);
}
case NXAST_SNAT__OBSOLETE:
default:
VLOG_WARN_RL(&bad_ofmsg_rl,
- "unknown Nicira vendor action subtype %"PRIu16,
- ntohs(nah->subtype));
+ "unknown Nicira vendor action subtype %d", subtype);
return ofp_mkerr(OFPET_BAD_ACTION, OFPBAC_BAD_VENDOR_TYPE);
}
}