1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Have lockinit() initialize the debugging fields of a lock

when DEBUG_LOCKS is defined.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
Kirk McKusick 2002-10-18 01:34:10 +00:00
parent bc7bdd50c1
commit 3a096f6c09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105370

View File

@ -524,6 +524,15 @@ lockinit(lkp, prio, wmesg, timo, flags)
lkp->lk_wmesg = wmesg;
lkp->lk_timo = timo;
lkp->lk_lockholder = LK_NOPROC;
#ifdef DEBUG_LOCKS
lkp->lk_filename = "none";
lkp->lk_lockername = "never exclusive locked";
lkp->lk_lineno = 0;
lkp->lk_slockholder = LK_NOPROC;
lkp->lk_sfilename = "none";
lkp->lk_slockername = "never share locked";
lkp->lk_slineno = 0;
#endif
}
/*