From: Patrick Donnelly Date: Thu, 14 Nov 2024 18:34:57 +0000 (-0500) Subject: client/UserPerm: add print method X-Git-Tag: v19.2.3~288^2~67 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=edb4074d8dbe0740d3b1470ebd5c5904f3f1ac84;p=ceph.git client/UserPerm: add print method For debug prints. Signed-off-by: Patrick Donnelly Fixes: https://tracker.ceph.com/issues/66373 (cherry picked from commit aeb07bb1cbfcf807367a71dafc2615a6cfd8921d) --- diff --git a/src/client/UserPerm.h b/src/client/UserPerm.h index bb7c25d3e1e6b..995dd03adefdd 100644 --- a/src/client/UserPerm.h +++ b/src/client/UserPerm.h @@ -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