From 3e36f40130a297ba1d2724f74fe9f0adb6162a92 Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Wed, 21 Dec 2022 02:50:04 +0200 Subject: [PATCH] compiler.h: rename printflike to printf_like Signed-off-by: Petro Karashchenko --- arch/xtensa/src/esp32s3/esp32s3_start.c | 2 +- include/nuttx/note/note_driver.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/xtensa/src/esp32s3/esp32s3_start.c b/arch/xtensa/src/esp32s3/esp32s3_start.c index 45ec39c99e..22fbdb1a99 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_start.c +++ b/arch/xtensa/src/esp32s3/esp32s3_start.c @@ -87,7 +87,7 @@ extern uint8_t _image_drom_size[]; ****************************************************************************/ #ifdef CONFIG_ESP32S3_APP_FORMAT_MCUBOOT -extern int ets_printf(const char *fmt, ...) printflike(1, 2); +extern int ets_printf(const char *fmt, ...) printf_like(1, 2); extern int cache_dbus_mmu_set(uint32_t ext_ram, uint32_t vaddr, uint32_t paddr, uint32_t psize, uint32_t num, uint32_t fixed); diff --git a/include/nuttx/note/note_driver.h b/include/nuttx/note/note_driver.h index ebd6bd952f..09bb43106a 100644 --- a/include/nuttx/note/note_driver.h +++ b/include/nuttx/note/note_driver.h @@ -91,10 +91,10 @@ struct note_driver_ops_s CODE void (*dump)(FAR struct note_driver_s *drv, uintptr_t ip, uint8_t event, FAR const void *buf, size_t len); CODE void (*vprintf)(FAR struct note_driver_s *drv, uintptr_t ip, - FAR const char *fmt, va_list va) printflike(3, 0); + FAR const char *fmt, va_list va) printf_like(3, 0); CODE void (*vbprintf)(FAR struct note_driver_s *drv, uintptr_t ip, uint8_t event, FAR const char *fmt, - va_list va) printflike(4, 0); + va_list va) printf_like(4, 0); #endif };