]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include: unset std::hex after printing CompatSet
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 9 Sep 2021 21:52:25 +0000 (17:52 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 17 Sep 2021 01:51:13 +0000 (21:51 -0400)
Otherwise you see this in debug output:

    $ ceph fs dump
    ...
    standby_count_wanted    0
    [mds.d{0:4375} state up:standby-replay seq 1 addr [v2:127.0.0.1:6830/2171112379,v1:127.0.0.1:6831/2171112379] compat {c=[1],r=[1],i=[7ff]}]

    Standby daemons:

    [mds.b{ffffffff:110a} state up:standby seq 1 addr [v2:127.0.0.1:1aab/d4c5b653,v1:127.0.0.1:1aad/d4c5b653] compat {c=[1],r=[1],i=[7ff]}]

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 9785a3623190b6491f88181ba6b6a876d3949d5e)

src/include/CompatSet.h

index b63e573d3d535f2a9e7db32f9e9a8653d72395a9..35c7a77381dc2c15c98975eac7fc5b2cb2bcb1b7 100644 (file)
@@ -226,6 +226,7 @@ struct CompatSet {
     o << "{c=[" << std::hex << compat.mask << "]";
     o << ",r=[" << std::hex << ro_compat.mask << "]";
     o << ",i=[" << std::hex << incompat.mask << "]}";
+    o << std::dec;
     return o;
   }