mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
Replace string-concatenation logging with printf-style F-variants
Converted log calls across src/, examples/, and test/ to use DEBUGF/TRACEF/ERRORF/etc. macros instead of std::string + operator+. This eliminates temporary heap allocations on every log call, which matters on memory-constrained MCUs.
This commit is contained in:
1 parent
3babdc001d
commit
79b75bbd4e
35 files changed
+595
-604
No files matched your search
@@ -23,12 +23,12 @@ public:
|
||||
|
||||
private:
|
||||
virtual void send_outgoing(const RNS::Bytes& data) {
|
||||
DEBUG("TestInterface.send_outgoing: data: " + data.toHex());
|
||||
DEBUGF("TestInterface.send_outgoing: data: %s", data.toHex().c_str());
|
||||
// Perform post-send housekeeping
|
||||
InterfaceImpl::handle_outgoing(data);
|
||||
}
|
||||
void on_incoming(const RNS::Bytes& data) {
|
||||
DEBUG("TestInterface.on_incoming: data: " + data.toHex());
|
||||
DEBUGF("TestInterface.on_incoming: data: %s", data.toHex().c_str());
|
||||
// Pass received data on to transport
|
||||
InterfaceImpl::handle_incoming(data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user