mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08: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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user