aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-07-10 19:02:02 -0400
committerDeterminant <[email protected]>2018-07-10 19:02:02 -0400
commita0ea3b5fb7eaedb9b6789657bed998585bb98b77 (patch)
tree069a083b932cf3ac9bbcb027049342605540b8a9
parent12336654c01e4cd12b9c115abb3a56868656cda6 (diff)
...
-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 {