diff --git a/examples/04.MQTT/mqtt.cc b/examples/04.MQTT/mqtt.cc index 01b207e..3e3ab08 100644 --- a/examples/04.MQTT/mqtt.cc +++ b/examples/04.MQTT/mqtt.cc @@ -68,7 +68,8 @@ void __cheri_callback publishCallback(const char *topicName, return; } - Debug::log("Got a PUBLISH for topic {}", topicName); + Debug::log("Got a PUBLISH for topic {}", + std::string_view{topicName, topicNameLength}); publishReceived++; }