X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-actions.c;h=c9e000fc0b84c005eda8dcb8c0f64dba83e532f7;hb=5014a89d9388d800ee5909acbb23705bb93ac1fc;hp=58d0098ee529ca988817562c6734ad3555502dd6;hpb=bff7eeb648a03598c57ac9a8288132379640cb2c;p=sliver-openvswitch.git diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 58d0098ee..c9e000fc0 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -2090,8 +2090,11 @@ ofpact_format(const struct ofpact *a, struct ds *s) ds_put_cstr(s, "controller("); if (reason != OFPR_ACTION) { + char reasonbuf[OFPUTIL_PACKET_IN_REASON_BUFSIZE]; + ds_put_format(s, "reason=%s,", - ofputil_packet_in_reason_to_string(reason)); + ofputil_packet_in_reason_to_string( + reason, reasonbuf, sizeof reasonbuf)); } if (controller->max_len != UINT16_MAX) { ds_put_format(s, "max_len=%"PRIu16",", controller->max_len);