From: Kefu Chai Date: Sat, 27 Aug 2022 02:27:01 +0000 (+0800) Subject: common/Journald: include msg/msg_fmt.h X-Git-Tag: v18.0.0~147^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e223a6802152fc689ecdbf38fb4a410123844c7;p=ceph.git common/Journald: include msg/msg_fmt.h so we can use the formatter defined for `entity_name_t`. in fmtlib v9, it is required to define a specialization for the formatted type even the type has an override of operator<<(). now that we already have a formatter for `entity_name_t`, let's just use it. this change should address the FTBFS when building with fmtlib v9. Signed-off-by: Kefu Chai --- diff --git a/src/common/Journald.cc b/src/common/Journald.cc index e3ae2d358f40..a1321c7eea8e 100644 --- a/src/common/Journald.cc +++ b/src/common/Journald.cc @@ -21,6 +21,7 @@ #include "common/LogEntry.h" #include "log/Entry.h" #include "log/SubsystemMap.h" +#include "msg/msg_fmt.h" namespace ceph::logging {