]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
error-report: make real_time_iso8601() public
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Sun, 1 Feb 2026 17:36:30 +0000 (20:36 +0300)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 13 Feb 2026 09:00:02 +0000 (10:00 +0100)
To be reused in the following commit.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260201173633.413934-3-vsementsov@yandex-team.ru>

include/qemu/error-report.h
util/error-report.c

index 3ae2357fda5404a552ce5fe2889a66b67c4cdfe8..dc423d36071b98d9dadd47fa22f4db14d9b319cd 100644 (file)
@@ -74,4 +74,10 @@ extern bool message_with_timestamp;
 extern bool error_with_guestname;
 extern const char *error_guest_name;
 
+/*
+ * Return current datetime in ISO 8601 format.
+ * Caller is responsible to g_free() the returned string.
+ */
+char *real_time_iso8601(void);
+
 #endif
index 1b17c11de19740211ba5293b866c5604d7381c2b..d6b7448183ad10fee935270fcec41ad046d8ebc0 100644 (file)
@@ -169,8 +169,7 @@ static void print_loc(void)
     }
 }
 
-static char *
-real_time_iso8601(void)
+char *real_time_iso8601(void)
 {
     g_autoptr(GDateTime) dt = g_date_time_new_now_utc();
     return g_date_time_format_iso8601(dt);