diff --git a/drivers/syslog/vlowsyslog.c b/drivers/syslog/vlowsyslog.c index 465b63cd7bb..e3e4051617b 100644 --- a/drivers/syslog/vlowsyslog.c +++ b/drivers/syslog/vlowsyslog.c @@ -64,14 +64,14 @@ * ****************************************************************************/ -int _lowvsyslog(FAR const IPTR char *fmt, va_list ap) +int _lowvsyslog(FAR const IPTR char *fmt, FAR va_list *ap) { struct lib_outstream_s stream; /* Wrap the stdout in a stream object and let lib_vsprintf do the work. */ syslogstream((FAR struct lib_outstream_s *)&stream); - return lib_vsprintf((FAR struct lib_outstream_s *)&stream, fmt, ap); + return lib_vsprintf((FAR struct lib_outstream_s *)&stream, fmt, *ap); } #endif /* CONFIG_ARCH_LOWPUTC */ diff --git a/drivers/syslog/vsyslog.c b/drivers/syslog/vsyslog.c index 820c1bf1a6b..fc9b9a1b9d5 100644 --- a/drivers/syslog/vsyslog.c +++ b/drivers/syslog/vsyslog.c @@ -62,7 +62,7 @@ * ****************************************************************************/ -int _vsyslog(FAR const IPTR char *fmt, va_list ap) +int _vsyslog(FAR const IPTR char *fmt, FAR va_list *ap) { struct lib_outstream_s stream; #ifdef CONFIG_SYSLOG_TIMESTAMP @@ -96,5 +96,5 @@ int _vsyslog(FAR const IPTR char *fmt, va_list ap) #endif - return lib_vsprintf((FAR struct lib_outstream_s *)&stream, fmt, ap); + return lib_vsprintf((FAR struct lib_outstream_s *)&stream, fmt, *ap); } diff --git a/include/nuttx/syslog/syslog.h b/include/nuttx/syslog/syslog.h index 90123e6d357..18d20c98d27 100644 --- a/include/nuttx/syslog/syslog.h +++ b/include/nuttx/syslog/syslog.h @@ -216,8 +216,8 @@ int syslog_flush(void); * ****************************************************************************/ -int _vsyslog(FAR const IPTR char *src, va_list ap); -int _lowvsyslog(FAR const IPTR char *src, va_list ap); +int _vsyslog(FAR const IPTR char *src, FAR va_list *ap); +int _lowvsyslog(FAR const IPTR char *src, FAR va_list *ap); #undef EXTERN #ifdef __cplusplus diff --git a/libc/syslog/lib_lowsyslog.c b/libc/syslog/lib_lowsyslog.c index 1aa0a00f761..d86ab394ff5 100644 --- a/libc/syslog/lib_lowsyslog.c +++ b/libc/syslog/lib_lowsyslog.c @@ -80,7 +80,7 @@ int lowvsyslog(int priority, FAR const IPTR char *fmt, va_list ap) { /* Perform the _lowvsyslog system call */ - ret = _lowvsyslog(fmt, ap); + ret = _lowvsyslog(fmt, &ap); } return ret; diff --git a/libc/syslog/lib_syslog.c b/libc/syslog/lib_syslog.c index 5ac55eb6b71..700b99b48c0 100644 --- a/libc/syslog/lib_syslog.c +++ b/libc/syslog/lib_syslog.c @@ -69,7 +69,7 @@ int vsyslog(int priority, FAR const IPTR char *fmt, va_list ap) { /* Yes.. lPerform the _vsyslog system cal */ - ret = _vsyslog(fmt, ap); + ret = _vsyslog(fmt, &ap); } return ret; diff --git a/syscall/syscall.csv b/syscall/syscall.csv index 573de95364d..306d5c4cae9 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -159,7 +159,7 @@ "up_assert","assert.h","","void","FAR const uint8_t*","int" #"up_assert","assert.h","","void" "vfork","unistd.h","defined(CONFIG_ARCH_HAVE_VFORK)","pid_t" -"_vsyslog","syslog.h","","int","FAR const IPTR char*","va_list" +"_vsyslog","syslog.h","","int","FAR const IPTR char*","FAR va_list*" "wait","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","pid_t","int*" "waitid","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","int","idtype_t","id_t"," FAR siginfo_t *","int" "waitpid","sys/wait.h","defined(CONFIG_SCHED_WAITPID)","pid_t","pid_t","int*","int"