[6399] monitor-mux: fix timestamp prefixes (Jan Kiszka)
Revision: 6399
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6399 Author: aliguori Date: 2009-01-22 17:15:16 +0000 (Thu, 22 Jan 2009)
Log Message:
-----------
monitor-mux: fix timestamp prefixes (Jan Kiszka)
rt_clock returns milliseconds. Fix mux'ed monitor terminal timestamps accordingly.
Signed-off-by Jan Kiszka <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/qemu-char.c
Modified: trunk/qemu-char.c
===================================================================
qemu-char.c +2 -2
@@ -241,13 +241,13 @@if (term_timestamps_start ==-1 ) term_timestamps_start = ti; ti -= term_timestamps_start; - secs = ti /1000000000 ; + secs = ti /1000 ;snprintf (buf1,sizeof (buf1),"[%02d:%02d:%02d.%03d] " , secs /3600 , (secs /60 ) %60 , secs %60 , - (int )((ti /1000000 ) %1000 )); + (int )(ti %1000 )); d->drv->chr_write (d->drv, (uint8_t *)buf1,strlen (buf1)); } }