From b3729cff92fd092f10fdef476e56a040301bed83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=BB=D0=B0=20=D0=93=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D1=83=D1=88=D0=BA=D0=BE?= Date: Fri, 24 Nov 2023 07:16:58 +0300 Subject: [PATCH] rename xvprintf to vxprintf --- main/xvprintf.c | 6 +++--- main/xvprintf.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/xvprintf.c b/main/xvprintf.c index 3087883..0fb8821 100644 --- a/main/xvprintf.c +++ b/main/xvprintf.c @@ -9,12 +9,12 @@ RingbufHandle_t can_messages; void init_tx_ringbuf() { can_messages = xRingbufferCreate(1028, RINGBUF_TYPE_NOSPLIT); - esp_log_set_vprintf(&xvprintf); + esp_log_set_vprintf(&vxprintf); } // This function will be called by the ESP log library every time ESP_LOG needs to be performed. // @important Do NOT use the ESP_LOG* macro's in this function ELSE recursive loop and stack overflow! So use printf() instead for debug messages. -int xvprintf(const char *fmt, va_list args) { +int vxprintf(const char *fmt, va_list args) { char msg_to_send[200]; size_t str_len; str_len = vsnprintf(msg_to_send, 199, fmt, args); @@ -25,5 +25,5 @@ int xvprintf(const char *fmt, va_list args) { int xprintf(const char *fmt, ...) { va_list(args); va_start(args, fmt); - return xvprintf(fmt, args); + return vxprintf(fmt, args); } diff --git a/main/xvprintf.h b/main/xvprintf.h index 6d9c9a4..5dc83df 100644 --- a/main/xvprintf.h +++ b/main/xvprintf.h @@ -6,7 +6,7 @@ extern RingbufHandle_t can_messages; void init_tx_ringbuf(); -int xvprintf(const char *fmt, va_list args); +int vxprintf(const char *fmt, va_list args); int xprintf(const char *fmt, ...); // functions