[neon/backports-focal/xdg-desktop-portal/Neon/unstable] document-portal: document-portal: Improve debugging of LOOKUP/FORGET

Alexander Larsson null at kde.org
Wed Jan 13 06:32:42 GMT 2021


Git commit aeed3e0b9519cab56949535409c5ce119a7ee192 by Alexander Larsson.
Committed on 02/04/2020 at 15:01.
Pushed by ash into branch 'Neon/unstable'.

document-portal: Improve debugging of LOOKUP/FORGET

M  +3    -1    document-portal/document-portal-fuse.c

https://invent.kde.org/neon/backports-focal/xdg-desktop-portal/commit/aeed3e0b9519cab56949535409c5ce119a7ee192

diff --git a/document-portal/document-portal-fuse.c b/document-portal/document-portal-fuse.c
index 8f35e51..8b88d31 100644
--- a/document-portal/document-portal-fuse.c
+++ b/document-portal/document-portal-fuse.c
@@ -1633,6 +1633,8 @@ xdp_fuse_lookup (fuse_req_t req,
         return xdp_reply_err (op, req, -res);
     }
 
+  g_debug ("LOOKUP %lx:%s => %lx", parent_ino, name, e.ino);
+
   if (fuse_reply_entry (req, &e) == -ENOENT)
     abort_reply_entry (&e);
 }
@@ -1883,6 +1885,7 @@ forget_one (fuse_ino_t ino,
 {
   g_autoptr(XdpInode) inode = xdp_inode_from_ino (ino);
 
+  g_debug ("FORGET %lx %ld", ino, nlookup);
   xdp_inode_kernel_unref (inode, nlookup);
 }
 
@@ -1891,7 +1894,6 @@ xdp_fuse_forget (fuse_req_t req,
                  fuse_ino_t ino,
                  unsigned long nlookup)
 {
-  g_debug ("FORGET %lx %ld", ino, nlookup);
   forget_one (ino, nlookup);
   fuse_reply_none (req);
 }



More information about the Neon-commits mailing list