lock using Lock instead of QLock.

qlocks are complicated enough that
they need to be able to print during
debugging.
This commit is contained in:
rsc 2004-12-27 05:18:22 +00:00
parent 73722a8bbf
commit e8edc17986

View file

@ -1,16 +1,16 @@
#include <u.h>
#include <libc.h>
static QLock fmtlock;
static Lock fmtlock;
void
__fmtlock(void)
{
qlock(&fmtlock);
lock(&fmtlock);
}
void
__fmtunlock(void)
{
qunlock(&fmtlock);
unlock(&fmtlock);
}