From 6c3746cad08e8fbaf5057f91b98fe60a32af64ff Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 27 Feb 2026 13:01:17 -1000 Subject: [PATCH] Fix clang-tidy naming: remove trailing underscore from static function Co-Authored-By: Claude Opus 4.6 --- esphome/components/esp32/printf_stubs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/esp32/printf_stubs.cpp b/esphome/components/esp32/printf_stubs.cpp index 5b93919f4e..c6f03bc363 100644 --- a/esphome/components/esp32/printf_stubs.cpp +++ b/esphome/components/esp32/printf_stubs.cpp @@ -39,7 +39,7 @@ static constexpr size_t PRINTF_BUFFER_SIZE = 512; // ESP-IDF log handler, and the SDK's printf/fprintf calls only exist in // debug/assert paths that are never reached in normal operation. // The buffer overflow check is purely defensive and should never trigger. -static int write_printf_buffer_(FILE *stream, char *buf, int len) { +static int write_printf_buffer(FILE *stream, char *buf, int len) { if (len < 0) { return len; } @@ -59,7 +59,7 @@ extern "C" { int __wrap_vprintf(const char *fmt, va_list ap) { char buf[PRINTF_BUFFER_SIZE]; - return write_printf_buffer_(stdout, buf, vsnprintf(buf, sizeof(buf), fmt, ap)); + return write_printf_buffer(stdout, buf, vsnprintf(buf, sizeof(buf), fmt, ap)); } int __wrap_printf(const char *fmt, ...) { @@ -74,7 +74,7 @@ int __wrap_fprintf(FILE *stream, const char *fmt, ...) { va_list ap; va_start(ap, fmt); char buf[PRINTF_BUFFER_SIZE]; - int len = write_printf_buffer_(stream, buf, vsnprintf(buf, sizeof(buf), fmt, ap)); + int len = write_printf_buffer(stream, buf, vsnprintf(buf, sizeof(buf), fmt, ap)); va_end(ap); return len; }