Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Message.cpp')
-rw-r--r--runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Message.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Message.cpp b/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Message.cpp
index 69705f972..76cb4dbd2 100644
--- a/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Message.cpp
+++ b/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Message.cpp
@@ -11,8 +11,6 @@
*******************************************************************************/
#include "common/messaging/Message.h"
-#include <iostream>
-#include <string>
#include <cstring>
#include <cstdlib>
@@ -39,13 +37,20 @@ Message::~Message() {
m_dataSize = 0;
}
-std::string Message::toString() const {
- std::stringstream strm;
- strm << "Message(" << m_address.toID() << ", evt=" << m_evtId << ")";
+String Message::toString() const {
+ char buffer[50];
+
+ String result("Message(");
+ result += m_address.toID();
+ result += ", evt=";
+ sprintf(buffer, "%d", m_evtId);
+ result += buffer;
+ result += ")";
if (m_data) {
- strm << std::showbase << std::hex << m_data;
+ sprintf(buffer, "%p", m_data);
+ result += buffer;
}
- return strm.str();
+ return result;
}
} /* namespace etRuntime */

Back to the top