]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client/UserPerm: add print method
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 14 Nov 2024 18:34:57 +0000 (13:34 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 27 Feb 2025 18:41:52 +0000 (13:41 -0500)
For debug prints.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
Fixes: https://tracker.ceph.com/issues/66373
src/client/UserPerm.h

index bb7c25d3e1e6b24c79f184b5cc0473bd5af71d5d..995dd03adefdd3fad897c20e072444f362188c8c 100644 (file)
@@ -88,6 +88,12 @@ public:
     gids = o.gids;
     alloced_gids = false;
   }
+  void print(std::ostream& os) const {
+    os
+      << "UserPerm(uid=" << m_uid
+      << " gid=" << m_gid
+      << ")";
+  }
 };
 
 #endif