Grow LOG_MESSAGE_LEN because we ran out of space
Change-Id: I214b88bbf04853f101e48b81fca7a9f764d53211
diff --git a/aos/logging/implementations.cc b/aos/logging/implementations.cc
index efeb704..78b6724 100644
--- a/aos/logging/implementations.cc
+++ b/aos/logging/implementations.cc
@@ -112,8 +112,10 @@
FillInMessageBase(level, message);
if (message_string.size() + size > sizeof(message->structure.serialized)) {
- LOG(FATAL, "serialized struct %s (size %zd) and message %s too big\n",
- type->name.c_str(), size, message_string.c_str());
+ LOG(FATAL,
+ "serialized struct %s (size %zd + %zd > %zd) and message %s too big\n",
+ type->name.c_str(), message_string.size(), size,
+ sizeof(message->structure.serialized), message_string.c_str());
}
message->structure.string_length = message_string.size();
memcpy(message->structure.serialized, message_string.data(),