BFD: fix timing in the main loop
[vpp.git] / vnet / vnet / bfd / bfd_debug.h
index c11e6d9..0072ff8 100644 (file)
@@ -47,6 +47,7 @@
       _s = format (_s, "%6.02f:DBG:%s:%d:%s():" fmt, vlib_time_now (vm), \
                    __file, __LINE__, __func__, ##__VA_ARGS__);           \
       printf ("%s\n", _s);                                               \
+      fflush (stdout);                                                   \
       vec_free (_s);                                                     \
     }                                                                    \
   while (0);
@@ -60,6 +61,7 @@
       _s = format (_s, "%6.02f:ERR:%s:%d:%s():" fmt, vlib_time_now (vm), \
                    __file, __LINE__, __func__, ##__VA_ARGS__);           \
       printf ("%s\n", _s);                                               \
+      fflush (stdout);                                                   \
       vec_free (_s);                                                     \
     }                                                                    \
   while (0);