aboutsummaryrefslogtreecommitdiff
path: root/event-loop-base.c
diff options
context:
space:
mode:
authorYusuke Okada <okada.yusuke@jp.fujitsu.com>2022-08-18 14:46:19 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2022-09-22 13:13:47 -0400
commitf16d15c9276bd8f501f861c39cbd4adc812d0c1d (patch)
tree0826d20803d23c0548b200cd02eca6d8c7e63174 /event-loop-base.c
parent6338c30111d596d955e6bc933a82184a0b910c43 (diff)
downloadqemu-f16d15c9276bd8f501f861c39cbd4adc812d0c1d.zip
qemu-f16d15c9276bd8f501f861c39cbd4adc812d0c1d.tar.gz
qemu-f16d15c9276bd8f501f861c39cbd4adc812d0c1d.tar.bz2
virtiofsd: use g_date_time_get_microsecond to get subsecond
The "%f" specifier in g_date_time_format() is only available in glib 2.65.2 or later. If combined with older glib, the function returns null and the timestamp displayed as "(null)". For backward compatibility, g_date_time_get_microsecond should be used to retrieve subsecond. In this patch the g_date_time_format() leaves subsecond field as "%06d" and let next snprintf to format with g_date_time_get_microsecond. Signed-off-by: Yusuke Okada <okada.yusuke@jp.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-id: 20220818184618.2205172-1-yokada.996@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'event-loop-base.c')
0 files changed, 0 insertions, 0 deletions