Date: Tue, 28 Jan 2020 17:52:37 +0800 From: Eryu Guan Message-ID: <20200128095237.GD47669@e18g06458.et15sqa> References: <20200121073236.9067-1-yangx.jy@cn.fujitsu.com> MIME-Version: 1.0 In-Reply-To: <20200121073236.9067-1-yangx.jy@cn.fujitsu.com> Content-Type: text/plain; charset=WINDOWS-1252 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: Re: [Virtio-fs] [PATCH] virtiofsd/passthrough_ll: Fix wrong output format in lo_setxattr() List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xiao Yang Cc: virtio-fs@redhat.com On Tue, Jan 21, 2020 at 03:32:36PM +0800, Xiao Yang wrote: > Actual debug output: > ------------------------------- > [2778114403742] [ID: 00000033] lo_setxattr(ino=93998909307364[2778114466291] [ID: 00000033] unique: 56, success, outsize: 16 > ------------------------------- > Correct debug output: > ------------------------------- > 383 [2341816212531] [ID: 00000098] lo_setxattr(ino=3, name=user.test value=test size=4) > ------------------------------- > > Fixes: 63bc560920ad ("virtiofsd: print log only when priority is high enough)" > Signed-off-by: Xiao Yang > --- > tools/virtiofsd/passthrough_ll.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c > index 57f58aef26..ff34e77a23 100644 > --- a/tools/virtiofsd/passthrough_ll.c > +++ b/tools/virtiofsd/passthrough_ll.c > @@ -2528,7 +2528,7 @@ static void lo_setxattr(fuse_req_t req, fuse_ino_t ino, const char *name, > goto out; > } > > - fuse_log(FUSE_LOG_DEBUG, "lo_setxattr(ino=%" PRIu64, > + fuse_log(FUSE_LOG_DEBUG, "lo_setxattr(ino=%" PRIu64 > ", name=%s value=%s size=%zd)\n", ino, name, value, size); Ah, my bad, thanks for the fix! Reviewed-by: Eryu Guan > > if (inode->is_symlink) { > -- > 2.21.0 > > > > > _______________________________________________ > Virtio-fs mailing list > Virtio-fs@redhat.com > https://www.redhat.com/mailman/listinfo/virtio-fs