mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 08:40:20 +00:00
Need to pass va_list as a reference to vsyslog. This is because va_list is a structure in some compilers and passing of structures in the NuttX sycalls does not work.
This commit is contained in:
parent
690a0e7a6e
commit
7dd66a4620
6 changed files with 9 additions and 9 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue