mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 05:08:41 +08:00
nuttx: add some missing FAR
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
b107e4f417
commit
7f564e0d86
4 changed files with 10 additions and 10 deletions
|
@ -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, ...) syslog_like(1, 2);
|
||||
void _alert(FAR const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_ERROR
|
||||
void _err(const char *format, ...) syslog_like(1, 2);
|
||||
void _err(FAR const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_WARN
|
||||
void _warn(const char *format, ...) syslog_like(1, 2);
|
||||
void _warn(FAR const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
void _info(const char *format, ...) syslog_like(1, 2);
|
||||
void _info(FAR const char *format, ...) syslog_like(1, 2);
|
||||
#endif
|
||||
#endif /* CONFIG_CPP_HAVE_VARARGS */
|
||||
|
||||
|
|
|
@ -65,6 +65,6 @@ void vwarnx(FAR const char *fmt, va_list ap) printf_like(1, 0);
|
|||
void err(int status, FAR const char *fmt, ...) printf_like(2, 3);
|
||||
void verr(int status, FAR const char *fmt, va_list ap) printf_like(2, 0);
|
||||
void errx(int status, FAR const char *fmt, ...) printf_like(2, 3);
|
||||
void verrx(int status, FAR const char *, va_list ap) printf_like(2, 0);
|
||||
void verrx(int status, FAR const char *fmt, va_list ap) printf_like(2, 0);
|
||||
|
||||
#endif /* __INCLUDE_ERR_H */
|
||||
|
|
|
@ -419,7 +419,7 @@ typedef uint16_t usbtrace_idset_t;
|
|||
|
||||
/* Print routine to use for usbdev_trprint() output */
|
||||
|
||||
typedef CODE int (*trprintf_t)(const char *fmt, ...) printf_like(1, 2);
|
||||
typedef CODE int (*trprintf_t)(FAR const char *fmt, ...) printf_like(1, 2);
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEBUG_ALERT
|
||||
void _alert(const char *format, ...)
|
||||
void _alert(FAR const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
@ -56,7 +56,7 @@ void _alert(const char *format, ...)
|
|||
#endif /* CONFIG_DEBUG_ALERT */
|
||||
|
||||
#ifdef CONFIG_DEBUG_ERROR
|
||||
void _err(const char *format, ...)
|
||||
void _err(FAR const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
@ -67,7 +67,7 @@ void _err(const char *format, ...)
|
|||
#endif /* CONFIG_DEBUG_ERROR */
|
||||
|
||||
#ifdef CONFIG_DEBUG_WARN
|
||||
void _warn(const char *format, ...)
|
||||
void _warn(FAR const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
@ -78,7 +78,7 @@ void _warn(const char *format, ...)
|
|||
#endif /* CONFIG_DEBUG_WARN */
|
||||
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
void _info(const char *format, ...)
|
||||
void _info(FAR const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
|
Loading…
Reference in a new issue