2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

match: Color output of match conditions for ovs-ofctl dump-flows.

Add color output for flow match conditions for ovs-ofctl dump-flows
command utility, by inserting color markers in the functions responsible
for printing those match condictions.

Signed-off-by: Quentin Monnet <quentin.monnet@6wind.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Quentin Monnet
2016-03-02 15:56:19 +01:00
committed by Ben Pfaff
parent ab8e7f7db9
commit 0deec6d261
2 changed files with 73 additions and 56 deletions

View File

@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <string.h>
#include "byte-order.h"
#include "colors.h"
#include "coverage.h"
#include "csum.h"
#include "dynamic-string.h"
@@ -984,7 +985,7 @@ format_flags_masked(struct ds *ds, const char *name,
uint32_t mask, uint32_t max_mask)
{
if (name) {
ds_put_format(ds, "%s=", name);
ds_put_format(ds, "%s%s=%s", colors.param, name, colors.end);
}
if (mask == max_mask) {