diff --git a/src/modbus.cpp b/src/modbus.cpp index fafd54958..aeaaf5da3 100644 --- a/src/modbus.cpp +++ b/src/modbus.cpp @@ -438,7 +438,7 @@ ModbusMessage Modbus::handleWrite(const ModbusMessage & request) { if (output.size()) { snprintf(error, sizeof(error), - "Modbus write command failed with error: %s (%s)", + "Modbus write command failed with error %s (%s)", (const char *)output["message"], Command::return_code_string(return_code)); } else { diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 2833c1a16..c161b3e49 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -228,9 +228,9 @@ void Mqtt::on_message(const char * topic, const uint8_t * payload, size_t len) { #if defined(EMSESP_DEBUG) if (len) { - LOG_DEBUG("Received topic `%s` => payload `%s` (length %d)", topic, message, len); + LOG_DEBUG("Received topic %s => payload '%s' (length %d)", topic, message, len); } else { - LOG_DEBUG("Received topic `%s`", topic); + LOG_DEBUG("Received topic %s", topic); } #endif // remove HA topics if we don't use discovery