This should make debugging easier in such cases. CC: Natasha Gude <nata...@nicira.com> Signed-off-by: Ben Pfaff <b...@nicira.com> --- lib/ofp-actions.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 2254f53..6b0363a 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -450,8 +450,15 @@ ofpacts_from_openflow10(const union ofp_action *in, size_t n_in, } } if (left) { - VLOG_WARN_RL(&rl, "bad action format at offset %zu", - (n_in - left) * sizeof *a); + if (!VLOG_DROP_WARN(&rl)) { + struct ds s; + + ds_init(&s); + ds_put_hex_dump(&s, in, n_in * sizeof *in, 0, false); + VLOG_WARN("bad action format at offset %#x:\n%s", + (n_in - left) * sizeof *a, ds_cstr(&s)); + ds_destroy(&s); + } return OFPERR_OFPBAC_BAD_LEN; } -- 1.7.2.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev