From: Changcheng Liu Date: Thu, 26 Mar 2020 01:23:49 +0000 (+0800) Subject: common/buffer: use '\n' to replace with endl manipulator X-Git-Tag: v16.1.0~1999^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1c96ad36ff16a7756721e4c909e211aab777d39b;p=ceph.git common/buffer: use '\n' to replace with endl manipulator explictly use '\n' as the visual separator in between buffers in the bufferlist. Signed-off-by: Changcheng Liu --- diff --git a/src/common/buffer.cc b/src/common/buffer.cc index 15ecd9626e0b..2e7cb35da46d 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -2165,15 +2165,15 @@ std::ostream& buffer::operator<<(std::ostream& out, const buffer::ptr& bp) { } std::ostream& buffer::operator<<(std::ostream& out, const buffer::list& bl) { - out << "buffer::list(len=" << bl.length() << "," << std::endl; + out << "buffer::list(len=" << bl.length() << ",\n"; for (const auto& node : bl.buffers()) { out << "\t" << node; if (&node != &bl.buffers().back()) { - out << "," << std::endl; + out << ",\n"; } } - out << std::endl << ")"; + out << "\n)"; return out; }