From: Markus Armbruster <armbru@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: marcandre.lureau@redhat.com, pbonzini@redhat.com,
eblake@redhat.com, berrange@redhat.com, yc-core@yandex-team.ru,
d-tatianin@yandex-team.ru, qemu-devel@nongnu.org
Subject: Re: [PATCH 2/3] error-report: move real_time_iso8601() to header
Date: Wed, 03 Dec 2025 15:16:46 +0100 [thread overview]
Message-ID: <87h5u7odkh.fsf@pond.sub.org> (raw)
In-Reply-To: <20251128200536.207344-3-vsementsov@yandex-team.ru> (Vladimir Sementsov-Ogievskiy's message of "Fri, 28 Nov 2025 23:05:34 +0300")
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> writes:
> To be reused in the following commit.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> ---
> include/qemu/error-report.h | 6 ++++++
> util/error-report.c | 7 -------
> 2 files changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/include/qemu/error-report.h b/include/qemu/error-report.h
> index 3ae2357fda..412b705898 100644
> --- a/include/qemu/error-report.h
> +++ b/include/qemu/error-report.h
> @@ -74,4 +74,10 @@ extern bool message_with_timestamp;
> extern bool error_with_guestname;
> extern const char *error_guest_name;
>
> +static inline char *real_time_iso8601(void)
> +{
> + g_autoptr(GDateTime) dt = g_date_time_new_now_utc();
> + return g_date_time_format_iso8601(dt);
> +}
> +
> #endif
Reasons for inline? Because the function is so small?
> diff --git a/util/error-report.c b/util/error-report.c
> index 1b17c11de1..20618640e8 100644
> --- a/util/error-report.c
> +++ b/util/error-report.c
> @@ -169,13 +169,6 @@ static void print_loc(void)
> }
> }
>
> -static char *
> -real_time_iso8601(void)
> -{
> - g_autoptr(GDateTime) dt = g_date_time_new_now_utc();
> - return g_date_time_format_iso8601(dt);
> -}
> -
> /*
> * Print a message to current monitor if we have one, else to stderr.
> * @report_type is the type of message: error, warning or informational.
next prev parent reply other threads:[~2025-12-03 14:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 20:05 [PATCH 0/3] char: add option to inject timestamps into logfile Vladimir Sementsov-Ogievskiy
2025-11-28 20:05 ` [RFC PATCH 1/3] char: qemu_chr_write_log() use qemu_write_full() Vladimir Sementsov-Ogievskiy
2025-11-28 20:05 ` [PATCH 2/3] error-report: move real_time_iso8601() to header Vladimir Sementsov-Ogievskiy
2025-12-03 14:16 ` Markus Armbruster [this message]
2025-12-03 15:05 ` Vladimir Sementsov-Ogievskiy
2025-12-04 8:12 ` Markus Armbruster
2025-12-04 8:30 ` Philippe Mathieu-Daudé
2025-12-04 12:54 ` Vladimir Sementsov-Ogievskiy
2025-11-28 20:05 ` [PATCH 3/3] chardev: add logtimestamp option Vladimir Sementsov-Ogievskiy
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=87h5u7odkh.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=d-tatianin@yandex-team.ru \
--cc=eblake@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@yandex-team.ru \
--cc=yc-core@yandex-team.ru \
/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.