qemu-e2k/tools
Yusuke Okada f16d15c927 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>
2022-09-22 13:13:47 -04:00
..
ebpf ebpf: Added eBPF RSS program. 2021-06-04 15:25:46 +08:00
virtiofsd virtiofsd: use g_date_time_get_microsecond to get subsecond 2022-09-22 13:13:47 -04:00
meson.build meson: create have_vhost_* variables 2022-05-07 07:46:58 +02:00