X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ferror.c;fp=src%2Ferror.c;h=50ca0926346309e517e0a87d0034ce217d1fce01;hb=cd0567b4052ee24259bc6b8a9858af9d26f3de48;hp=c130e71a268f61011e9beb5718c707f1c8326c60;hpb=69da9075d8a72c094e0bb977226d975365431f55;p=m6w6%2Fext-psi diff --git a/src/error.c b/src/error.c index c130e71..50ca092 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_lock(context); PSI_DEBUG_PRINTV(context, msg, argv); + PSI_DEBUG_PRINT(context, "\n"); + psi_debug_unlock(context); va_end(argv); if (context) {