aboutsummaryrefslogtreecommitdiff
path: root/dtc
diff options
context:
space:
mode:
authorHaiyue Wang <haiyue.wang@intel.com>2022-04-24 18:50:35 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-28 08:51:56 +0200
commit5c08edd1fab9b6e5b02bedecb1130199ab75a29c (patch)
tree84e16b558c41cb4d0c1fcddb01811cfb8e9e398b /dtc
parentcf6f26d6f9b2015ee12b4604b79359e76784163a (diff)
downloadqemu-5c08edd1fab9b6e5b02bedecb1130199ab75a29c.zip
qemu-5c08edd1fab9b6e5b02bedecb1130199ab75a29c.tar.gz
qemu-5c08edd1fab9b6e5b02bedecb1130199ab75a29c.tar.bz2
error-report: fix g_date_time_format assertion
The 'g_get_real_time' returns the number of microseconds since January 1, 1970 UTC, but 'g_date_time_new_from_unix_utc' needs the number of seconds, so it will cause the invalid time input: (process:279642): GLib-CRITICAL (recursed) **: g_date_time_format: assertion 'datetime != NULL' failed Call function 'g_date_time_new_now_utc' instead, it has the same result as 'g_date_time_new_from_unix_utc(g_get_real_time() / G_USEC_PER_SEC)'; Fixes: 73dab893b569 ("error-report: replace deprecated g_get_current_time() with glib >= 2.62") Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220424105036.291370-1-haiyue.wang@intel.com>
Diffstat (limited to 'dtc')
0 files changed, 0 insertions, 0 deletions