aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/msg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/salticidae/msg.h b/include/salticidae/msg.h
index ab79392..b9db1b8 100644
--- a/include/salticidae/msg.h
+++ b/include/salticidae/msg.h
@@ -147,13 +147,13 @@ class MsgBase {
operator std::string() const {
DataStream s;
- s << "<"
+ s << "<msg "
<< "magic=" << get_hex(magic) << " "
<< "opcode=" << get_hex(opcode) << " "
- << "length=" << get_hex(length) << " "
+ << "length=" << std::to_string(length) << " "
<< "checksum=" << get_hex(checksum) << " "
<< "payload=" << get_hex(payload) << ">";
- return std::string(s);
+ return std::string(std::move(s));
}
uint32_t get_checksum() const {