diff options
Diffstat (limited to 'src/mm-at-serial-port.c')
-rw-r--r-- | src/mm-at-serial-port.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mm-at-serial-port.c b/src/mm-at-serial-port.c index 1a518f59..068450d2 100644 --- a/src/mm-at-serial-port.c +++ b/src/mm-at-serial-port.c @@ -273,6 +273,7 @@ debug_log (MMSerialPort *port, const char *prefix, const char *buf, gsize len) { static GString *debug = NULL; const char *s; + GTimeVal tv; if (!debug) debug = g_string_sized_new (256); @@ -295,7 +296,12 @@ debug_log (MMSerialPort *port, const char *prefix, const char *buf, gsize len) } g_string_append_c (debug, '\''); - g_debug ("(%s): %s", mm_port_get_device (MM_PORT (port)), debug->str); + g_get_current_time (&tv); + g_debug ("<%ld.%ld> (%s): %s", + tv.tv_sec, + tv.tv_usec, + mm_port_get_device (MM_PORT (port)), + debug->str); g_string_truncate (debug, 0); } |