From: Anthony Liguori <aliguori@us.ibm.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] monitor-mux: fix timestamp prefixes
Date: Thu, 22 Jan 2009 11:20:07 -0600 [thread overview]
Message-ID: <4978AAC7.9000205@us.ibm.com> (raw)
In-Reply-To: <4975CA03.3070700@siemens.com>
Jan Kiszka wrote:
> rt_clock returns milliseconds. Fix mux'ed monitor terminal timestamps
> accordingly.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
>
> qemu-char.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/qemu-char.c b/qemu-char.c
> index ac431c7..f849187 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -241,13 +241,13 @@ static int mux_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
> 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));
> }
> }
>
>
>
>
prev parent reply other threads:[~2009-01-22 17:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-20 12:56 [Qemu-devel] [PATCH] monitor-mux: fix timestamp prefixes Jan Kiszka
2009-01-22 17:20 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4978AAC7.9000205@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).