diff options
Diffstat (limited to 'usage.c')
-rw-r--r-- | usage.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -81,6 +81,12 @@ static void error_builtin(const char *err, va_list params) static void warn_builtin(const char *warn, va_list params) { + /* + * We call this trace2 function first and expect it to va_copy 'params' + * before using it (because an 'ap' can only be walked once). + */ + trace2_cmd_error_va(warn, params); + vreportf("warning: ", warn, params); } |