]> git.proxmox.com Git - mirror_qemu.git/blobdiff - util/error-report.c
Merge tag 'pull-request-2023-10-20' of https://gitlab.com/thuth/qemu into staging
[mirror_qemu.git] / util / error-report.c
index dbadaf206d2717877d69680d907742e70e043208..6e44a557321716f033d7d2da4c441e98ee436c71 100644 (file)
@@ -173,7 +173,7 @@ static char *
 real_time_iso8601(void)
 {
 #if GLIB_CHECK_VERSION(2,62,0)
-    g_autoptr(GDateTime) dt = g_date_time_new_from_unix_utc(g_get_real_time());
+    g_autoptr(GDateTime) dt = g_date_time_new_now_utc();
     /* ignore deprecation warning, since GLIB_VERSION_MAX_ALLOWED is 2.56 */
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@@ -193,6 +193,7 @@ real_time_iso8601(void)
  * a single phrase, with no newline or trailing punctuation.
  * Prepend the current location and append a newline.
  */
+G_GNUC_PRINTF(2, 0)
 static void vreport(report_type type, const char *fmt, va_list ap)
 {
     gchar *timestr;