From: Samuel Just Date: Thu, 21 Jan 2021 00:15:41 +0000 (+0000) Subject: include/types.h: force ceph_le64 to long in operator<< X-Git-Tag: v17.1.0~2805^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7fa2be43cbd27633900991a4b0826a3609ff124c;p=ceph.git include/types.h: force ceph_le64 to long in operator<< Overload resolution wasn't working when included transitively from seastore.cc, this was easier than figuring out why. Signed-off-by: Samuel Just --- diff --git a/src/include/types.h b/src/include/types.h index 60d1fb305a8e..6737f3dc9181 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -478,7 +478,7 @@ inline std::ostream& operator<<(std::ostream& out, const byte_u_t& b) inline std::ostream& operator<<(std::ostream& out, const ceph_mon_subscribe_item& i) { - return out << i.start + return out << (long)i.start << ((i.flags & CEPH_SUBSCRIBE_ONETIME) ? "" : "+"); }