X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Ferror.c;fp=src%2Ferror.c;h=8abb68695ea294c3b1b35175d2fb0a080978f29b;hb=44bd65fe60fb83fa4c3bbb0d4c679d2b70a096df;hp=50ca0926346309e517e0a87d0034ce217d1fce01;hpb=cd0567b4052ee24259bc6b8a9858af9d26f3de48;p=m6w6%2Fext-psi diff --git a/src/error.c b/src/error.c index 50ca092..8abb686 100644 --- a/src/error.c +++ b/src/error.c @@ -78,10 +78,10 @@ void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type, va_end(argv); va_start(argv, msg); - psi_debug_lock(context); - PSI_DEBUG_PRINTV(context, msg, argv); - PSI_DEBUG_PRINT(context, "\n"); - psi_debug_unlock(context); + PSI_DEBUG_LOCK(context, + PSI_DEBUG_PRINTV(context, msg, argv); + PSI_DEBUG_PRINT(context, "\n"); + ); va_end(argv); if (context) {