From c3d5b7803d22c5fc3b3bac289634868737debff3 Mon Sep 17 00:00:00 2001 From: Rapsssito Date: Sat, 13 Jul 2024 11:00:35 +0200 Subject: [PATCH] Fix linting issues --- esphome/core/event_emitter.cpp | 4 ++-- esphome/core/event_emitter.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {