ds_init(&s);
ds_put_hex_dump(&s, in, n_in * sizeof *a, 0, false);
- VLOG_WARN("bad action format at offset %#x:\n%s",
+ VLOG_WARN("bad action format at offset %#zx:\n%s",
(n_in - left) * sizeof *a, ds_cstr(&s));
ds_destroy(&s);
}
if (!op->error && !ofproto_rule_is_hidden(rule)) {
/* Check that we can just cast from ofoperation_type to
* nx_flow_update_event. */
- BUILD_ASSERT_DECL(OFOPERATION_ADD == NXFME_ADDED);
- BUILD_ASSERT_DECL(OFOPERATION_DELETE == NXFME_DELETED);
- BUILD_ASSERT_DECL(OFOPERATION_MODIFY == NXFME_MODIFIED);
+ BUILD_ASSERT_DECL((enum nx_flow_update_event) OFOPERATION_ADD
+ == NXFME_ADDED);
+ BUILD_ASSERT_DECL((enum nx_flow_update_event) OFOPERATION_DELETE
+ == NXFME_DELETED);
+ BUILD_ASSERT_DECL((enum nx_flow_update_event) OFOPERATION_MODIFY
+ == NXFME_MODIFIED);
ofmonitor_report(ofproto->connmgr, rule,
(enum nx_flow_update_event) op->type,