vlog: Report timestamps in millisecond resolution in log messages.
[cascardo/ovs.git] / utilities / ovs-ofctl.c
index 547d50c..27af1b8 100644 (file)
@@ -1388,7 +1388,8 @@ monitor_vconn(struct vconn *vconn, bool reply_to_echo_requests)
             run(retval, "vconn_recv");
 
             if (timestamp) {
-                char *s = xastrftime("%Y-%m-%d %H:%M:%S: ", time_wall(), true);
+                char *s = xastrftime_msec("%Y-%m-%d %H:%M:%S.###: ",
+                                          time_wall_msec(), true);
                 fputs(s, stderr);
                 free(s);
             }