log: make log_syntax() assign correct errno and show valid error cause
This commit is contained in:
+1
-1
@@ -1223,7 +1223,7 @@ int log_syntax_internal(
|
||||
log_target == LOG_TARGET_NULL)
|
||||
return -ERRNO_VALUE(error);
|
||||
|
||||
errno = error;
|
||||
errno = ERRNO_VALUE(error);
|
||||
|
||||
va_start(ap, format);
|
||||
(void) vsnprintf(buffer, sizeof buffer, format, ap);
|
||||
|
||||
Reference in New Issue
Block a user