]> git.apps.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>
Mon, 17 Mar 2025 19:43:15 +0000 (15:43 -0400)
For debug prints.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
Fixes: https://tracker.ceph.com/issues/66373
(cherry picked from commit aeb07bb1cbfcf807367a71dafc2615a6cfd8921d)

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