diff --git a/poincare/include/poincare/code_point_layout.h b/poincare/include/poincare/code_point_layout.h index 97fcfdae9..458641c39 100644 --- a/poincare/include/poincare/code_point_layout.h +++ b/poincare/include/poincare/code_point_layout.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace Poincare { @@ -40,7 +41,10 @@ public: stream << "CodePointLayout"; } virtual void logAttributes(std::ostream & stream) const override { - stream << " CodePoint=\"" << m_codePoint << "\""; + constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1; + char buffer[bufferSize]; + SerializationHelper::CodePoint(buffer, bufferSize, m_codePoint); + stream << " CodePoint=\"" << buffer << "\""; } #endif