summaryrefslogtreecommitdiff
path: root/lib/flow.c
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@6wind.com>2016-03-02 15:56:19 +0100
committerBen Pfaff <blp@ovn.org>2016-03-18 14:02:48 -0700
commit0deec6d26106c881e265e90a301d7975ffc06eab (patch)
tree3c6db570d5b85f85684c0c1dc0136e16623a0041 /lib/flow.c
parentab8e7f7db9fae70af44cec4daf3f3e5b9cdc4de8 (diff)
downloadopenvswitch-0deec6d26106c881e265e90a301d7975ffc06eab.tar.gz
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>
Diffstat (limited to 'lib/flow.c')
-rw-r--r--lib/flow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/flow.c b/lib/flow.c
index 2a7116b67..5e962e231 100644
--- a/lib/flow.c
+++ b/lib/flow.c
@@ -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) {