[ovs-dev] [PATCH 3/5] ovs-ofctl: Flush monitored data.
Gurucharan Shetty
shettyg at nicira.com
Mon May 19 19:52:24 UTC 2014
Otherwise, on windows unit tests data sometimes is
not seen in output files.
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
utilities/ovs-ofctl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index d62d328..1034e8b 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -1479,6 +1479,7 @@ monitor_vconn(struct vconn *vconn, bool reply_to_echo_requests)
ofptype_decode(&type, ofpbuf_data(b));
ofp_print(stderr, ofpbuf_data(b), ofpbuf_size(b), verbosity + 2);
+ fflush(stderr);
switch ((int) type) {
case OFPTYPE_BARRIER_REPLY:
@@ -1552,6 +1553,7 @@ ofctl_monitor(int argc, char *argv[])
msg = ofpbuf_new(0);
ofputil_append_flow_monitor_request(&fmr, msg);
dump_stats_transaction(vconn, msg);
+ fflush(stdout);
} else {
ovs_fatal(0, "%s: unsupported \"monitor\" argument", arg);
}
--
1.7.9.5
More information about the dev
mailing list