X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-print.c;h=d4f33daa970bf7baa1d1c5ce192099f45994fca2;hb=55eccb868b8f1da858a9f724335b5bb059276497;hp=bf9bf82e0c6cb5fdcb7e643f9b0cdd4f1f6bace6;hpb=e868fb3d322f5c46385f1fc6db5bb1ab33f90305;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index bf9bf82e..d4f33daa 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1074,6 +1074,10 @@ ofp_print_flow_stats_request(struct ds *string, const struct ofp_header *oh) ofp_print_port_name(string, fsr.out_port); } + /* A flow stats request doesn't include a priority, but cls_rule_format() + * will print one unless it is OFP_DEFAULT_PRIORITY. */ + fsr.match.priority = OFP_DEFAULT_PRIORITY; + ds_put_char(string, ' '); cls_rule_format(&fsr.match, string); }