mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
align with other macro naming style Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
bc9b476d55
commit
fd0d6a9bf5
+5
-5
@@ -1095,7 +1095,7 @@ extern "C"
|
||||
|
||||
typedef CODE void (*lib_dump_handler_t)(FAR void *arg,
|
||||
FAR const char *fmt, ...)
|
||||
printflike(2, 3);
|
||||
printf_like(2, 3);
|
||||
|
||||
/* Dump a buffer of data with handler */
|
||||
|
||||
@@ -1140,19 +1140,19 @@ void lib_dumpvfile(int fd, FAR const char *msg, FAR const struct iovec *iov,
|
||||
|
||||
#ifndef CONFIG_CPP_HAVE_VARARGS
|
||||
#ifdef CONFIG_DEBUG_ALERT
|
||||
void _alert(const char *format, ...) sysloglike(1, 2);
|
||||
void _alert(const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_ERROR
|
||||
void _err(const char *format, ...) sysloglike(1, 2);
|
||||
void _err(const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_WARN
|
||||
void _warn(const char *format, ...) sysloglike(1, 2);
|
||||
void _warn(const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
void _info(const char *format, ...) sysloglike(1, 2);
|
||||
void _info(const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
#endif /* CONFIG_CPP_HAVE_VARARGS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user