From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 20 Sep 2022 13:58:41 -0400 From: Vivek Goyal Message-ID: References: <20220818184618.2205172-1-yokada.996@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Virtio-fs] [PATCH] virtiofsd: use g_date_time_get_microsecond to get subsecond List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Yusuke Okada , "open list:virtiofs" , Yusuke Okada , qemu-devel@nongnu.org On Wed, Aug 24, 2022 at 01:41:29PM -0400, Stefan Hajnoczi wrote: > On Thu, Aug 18, 2022 at 02:46:19PM -0400, Yusuke Okada wrote: > > From: Yusuke Okada > > > > 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 > > --- > > tools/virtiofsd/passthrough_ll.c | 7 +++++-- > > 1 file changed, 5 insertions(+), 2 deletions(-) > > Thanks, applied to my block tree for QEMU 7.2: > https://gitlab.com/stefanha/qemu/commits/block Hi Stefan, Wondering when do you plan to send it for merge. This seems like a simple fix. Not sure why it does not qualify as a fix for 7.1 instead. Thanks Vivek