diff --git a/esphome/core/event_emitter.cpp b/esphome/core/event_emitter.cpp index 59c3947226..ba658d66ca 100644 --- a/esphome/core/event_emitter.cpp +++ b/esphome/core/event_emitter.cpp @@ -5,8 +5,8 @@ namespace esphome { static const char *const TAG = "event_emitter"; void RaiseEventEmitterFullError(EventEmitterListenerID id) { - ESP_LOGE(TAG, "EventEmitter has reached the maximum number of listeners for event"); - ESP_LOGW(TAG, "Removing listener with ID %d to make space for new listener", id); + ESP_LOGE(TAG, "EventEmitter has reached the maximum number of listeners for event"); + ESP_LOGW(TAG, "Removing listener with ID %ld to make space for new listener", id); } } // namespace esphome diff --git a/esphome/core/event_emitter.h b/esphome/core/event_emitter.h index d1752c2d13..0f33dd2687 100644 --- a/esphome/core/event_emitter.h +++ b/esphome/core/event_emitter.h @@ -11,8 +11,8 @@ namespace esphome { using EventEmitterListenerID = uint32_t; void RaiseEventEmitterFullError(EventEmitterListenerID id); -// EventEmitter class that can emit events with a specific name (it is highly recommended to use an enum class for this) and a list of arguments. -// Supports multiple listeners for each event. +// EventEmitter class that can emit events with a specific name (it is highly recommended to use an enum class for this) +// and a list of arguments. Supports multiple listeners for each event. template class EventEmitter { public: EventEmitterListenerID on(EvtType event, std::function listener) {