ofp-actions: Add more detail when formatting unroll_xlate pseudo-action.
authorBen Pfaff <blp@ovn.org>
Sat, 23 Jan 2016 00:40:28 +0000 (16:40 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 28 Jan 2016 21:59:41 +0000 (13:59 -0800)
This is helpful for debugging recirculation.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
lib/ofp-actions.c

index ff3bc12..9b75526 100644 (file)
@@ -4493,10 +4493,10 @@ parse_UNROLL_XLATE(char *arg OVS_UNUSED, struct ofpbuf *ofpacts OVS_UNUSED,
 }
 
 static void
-format_UNROLL_XLATE(const struct ofpact_unroll_xlate *a OVS_UNUSED,
-                    struct ds *s)
+format_UNROLL_XLATE(const struct ofpact_unroll_xlate *a, struct ds *s)
 {
-    ds_put_cstr(s, "unroll_xlate");
+    ds_put_format(s, "unroll_xlate(table=%"PRIu8", cookie=%"PRIu64")",
+                  a->rule_table_id, ntohll(a->rule_cookie));
 }
 \f
 /* Action structure for NXAST_SAMPLE.