qemu/tools/virtiofsd
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
..
50-qemu-virtiofsd.json.in virtiofsd: add vhost-user.json file 2020-01-23 16:41:36 +00:00
buffer.c tools/virtiofsd/buffer.c: replaced a calloc call with GLib's g_try_new0 2021-05-26 18:39:32 +01:00
fuse_common.h virtiofsd, fuse_lowlevel.c: Add capability to parse security context 2022-02-17 17:22:26 +00:00
fuse_i.h virtiofsd, fuse_lowlevel.c: Add capability to parse security context 2022-02-17 17:22:26 +00:00
fuse_log.c Clean up includes 2020-12-10 17:16:44 +01:00
fuse_log.h Clean up includes 2020-12-10 17:16:44 +01:00
fuse_lowlevel.c virtiofsd: Fix format strings 2022-08-04 14:44:25 -04:00
fuse_lowlevel.h virtiofsd: Add basic support for FUSE_SYNCFS request 2022-02-17 17:22:26 +00:00
fuse_misc.h Clean up includes 2020-12-10 17:16:44 +01:00
fuse_opt.c tools/virtiofsd/fuse_opt.c: Replaced a malloc with GLib's g_try_malloc 2021-05-26 18:39:32 +01:00
fuse_opt.h virtiofsd: Format imported files to qemu style 2020-01-23 16:41:36 +00:00
fuse_signals.c Clean up includes 2020-12-10 17:16:44 +01:00
fuse_virtio.c misc: fix commonly doubled up words 2022-08-01 11:58:02 +02:00
fuse_virtio.h virtiofsd: cleanup allocated resource in se 2020-01-23 16:41:37 +00:00
helper.c virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC) 2022-05-03 15:47:08 +04:00
meson.build libvhost-user: make it a meson subproject 2020-12-08 13:48:58 -05:00
passthrough_helpers.h virtiofsd: Format imported files to qemu style 2020-01-23 16:41:36 +00:00
passthrough_ll.c virtiofsd: use g_date_time_get_microsecond to get subsecond 2022-09-22 13:13:47 -04:00
passthrough_seccomp.c virtiofsd: Add basic support for FUSE_SYNCFS request 2022-02-17 17:22:26 +00:00
passthrough_seccomp.h Clean up header guards that don't match their file name 2022-05-11 16:49:06 +02:00