X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ferror.c;h=8abb68695ea294c3b1b35175d2fb0a080978f29b;hb=ef4e043826e92afd32000b7d945cdf86a6e9a223;hp=c130e71a268f61011e9beb5718c707f1c8326c60;hpb=d2e0af1718294569a84c3c15616c74e4d55ea579;p=m6w6%2Fext-psi diff --git a/src/error.c b/src/error.c index c130e71..8abb686 100644 --- a/src/error.c +++ b/src/error.c @@ -75,11 +75,13 @@ void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type, va_start(argv, msg); psi_verror(type, fn, ln, msg, argv); -#ifdef __clang__ va_end(argv); + va_start(argv, msg); -#endif - PSI_DEBUG_PRINTV(context, msg, argv); + PSI_DEBUG_LOCK(context, + PSI_DEBUG_PRINTV(context, msg, argv); + PSI_DEBUG_PRINT(context, "\n"); + ); va_end(argv); if (context) {