]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: do not print non-void* pointer
authorKefu Chai <kchai@redhat.com>
Wed, 9 Sep 2020 02:17:28 +0000 (10:17 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 9 Sep 2020 04:03:37 +0000 (12:03 +0800)
commit86e9b6887f9472cea68b4caf511d8c5b1f4afc74
treefcf73d4ba51a2a2f2222fa73afb4b3d5d8447fc8
parentaa28b51f3c5434253c1788927100fb0b6e41bdbb
crimson/net: do not print non-void* pointer

to address the failure like

fmt/core.h:902:19: error: static assertion failed: formatting of non-void pointers is disallowed
  902 |     static_assert(!sizeof(T), "formatting of non-void pointers is disallowed");
      |                   ^~~~~~~~~~

and i searched around, couldn't find any other
statement printing the address of message, so
i think it's not of much use to print their
addresses in a single place, unless we can cross
check them in different places.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/ProtocolV2.cc