From: Eric Blake <eblake@redhat.com>
To: arei.gonglei@huawei.com, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] qemu-error: make the timestamp more obvious and clear
Date: Wed, 20 May 2015 21:07:09 -0600 [thread overview]
Message-ID: <555D4BDD.5070604@redhat.com> (raw)
In-Reply-To: <1432176875-5984-1-git-send-email-arei.gonglei@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]
On 05/20/2015 08:54 PM, arei.gonglei@huawei.com wrote:
> From: Gonglei <arei.gonglei@huawei.com>
>
> before:
> (qemu) 2015-05-21T02:07:43.695065Z qemu-system-x86_64: test....
Ah, but the trailing Z is UTC,
> after applying this patch:
> (qemu) [2015-05-21T02:21:46.023619Z UTC] qemu-system-x86_64: test....
so this representation is now redundant for specifying the same timezone
twice. Basically, 'Z', '+0000', and ' UTC' are synonyms; I don't know
if any one form is more popular than others, but I don't think we need
this patch.
>
> Cc: Eric Blake <eblake@redhat.com>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
> util/qemu-error.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/util/qemu-error.c b/util/qemu-error.c
> index 9bba5f5..0b91cbc 100644
> --- a/util/qemu-error.c
> +++ b/util/qemu-error.c
> @@ -212,7 +212,7 @@ void error_vreport(const char *fmt, va_list ap)
> if (enable_timestamp_msg) {
> g_get_current_time(&tv);
> timestr = g_time_val_to_iso8601(&tv);
Since glib already provided a trailing Z, it's actually more work to
strip it and provide an alternative of ' UTC'; so I'm inclined to NACK
this patch, unless anyone else has a strong opinion in favor of it.
> - error_printf("%s ", timestr);
> + error_printf("[%s UTC] ", timestr);
> g_free(timestr);
> }
>
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Eric Blake <eblake@redhat.com>
To: arei.gonglei@huawei.com, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-error: make the timestamp more obvious and clear
Date: Wed, 20 May 2015 21:07:09 -0600 [thread overview]
Message-ID: <555D4BDD.5070604@redhat.com> (raw)
In-Reply-To: <1432176875-5984-1-git-send-email-arei.gonglei@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]
On 05/20/2015 08:54 PM, arei.gonglei@huawei.com wrote:
> From: Gonglei <arei.gonglei@huawei.com>
>
> before:
> (qemu) 2015-05-21T02:07:43.695065Z qemu-system-x86_64: test....
Ah, but the trailing Z is UTC,
> after applying this patch:
> (qemu) [2015-05-21T02:21:46.023619Z UTC] qemu-system-x86_64: test....
so this representation is now redundant for specifying the same timezone
twice. Basically, 'Z', '+0000', and ' UTC' are synonyms; I don't know
if any one form is more popular than others, but I don't think we need
this patch.
>
> Cc: Eric Blake <eblake@redhat.com>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
> util/qemu-error.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/util/qemu-error.c b/util/qemu-error.c
> index 9bba5f5..0b91cbc 100644
> --- a/util/qemu-error.c
> +++ b/util/qemu-error.c
> @@ -212,7 +212,7 @@ void error_vreport(const char *fmt, va_list ap)
> if (enable_timestamp_msg) {
> g_get_current_time(&tv);
> timestr = g_time_val_to_iso8601(&tv);
Since glib already provided a trailing Z, it's actually more work to
strip it and provide an alternative of ' UTC'; so I'm inclined to NACK
this patch, unless anyone else has a strong opinion in favor of it.
> - error_printf("%s ", timestr);
> + error_printf("[%s UTC] ", timestr);
> g_free(timestr);
> }
>
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-05-21 3:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 2:54 [Qemu-trivial] [PATCH] qemu-error: make the timestamp more obvious and clear arei.gonglei
2015-05-21 2:54 ` [Qemu-devel] " arei.gonglei
2015-05-21 3:07 ` Eric Blake [this message]
2015-05-21 3:07 ` Eric Blake
2015-05-21 3:21 ` [Qemu-trivial] " Gonglei
2015-05-21 3:21 ` [Qemu-devel] " Gonglei
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=555D4BDD.5070604@redhat.com \
--to=eblake@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.