From 4eeeeb7c81851be7fef82369dcd715d3f22537f9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Feb 2026 21:34:32 -0600 Subject: [PATCH] Fix clang-tidy: use qualified name for static method, remove trailing underscore --- esphome/components/logger/log_buffer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/logger/log_buffer.h b/esphome/components/logger/log_buffer.h index 93c8b0f921..70b2d795a6 100644 --- a/esphome/components/logger/log_buffer.h +++ b/esphome/components/logger/log_buffer.h @@ -77,10 +77,10 @@ struct LogBuffer { // Format line number using subtraction loops (no division - important for ESP8266 which lacks hardware divider) if (line > 999) [[unlikely]] { - this->write_digit_(p, line, 1000); + LogBuffer::write_digit(p, line, 1000); } - this->write_digit_(p, line, 100); - this->write_digit_(p, line, 10); + LogBuffer::write_digit(p, line, 100); + LogBuffer::write_digit(p, line, 10); *p++ = '0' + line; *p++ = ']'; @@ -158,7 +158,7 @@ struct LogBuffer { } #endif // Extract one decimal digit via subtraction (no division - important for ESP8266) - static inline void write_digit_(char *&p, int &value, int divisor) { + static inline void write_digit(char *&p, int &value, int divisor) { char d = '0'; while (value >= divisor) { d++;