Fix a call to panic: panic doesn't do token substitution on the panic
string.
This commit is contained in:
parent
d7e3d98a5e
commit
1e1ece7deb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7156
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ufs_vnops.c 8.10 (Berkeley) 4/1/94
|
||||
* $Id: ufs_vnops.c,v 1.16 1995/03/11 22:23:14 davidg Exp $
|
||||
* $Id: ufs_vnops.c,v 1.17 1995/03/16 18:17:01 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -1588,9 +1588,11 @@ ufs_unlock(ap)
|
||||
panic("ufs_unlock NOT LOCKED");
|
||||
}
|
||||
if (p && p->p_pid != ip->i_lockholder && p->p_pid > -1 &&
|
||||
ip->i_lockholder > -1 && lockcount++ < 100)
|
||||
panic("unlocker (%d) != lock holder (%d)",
|
||||
ip->i_lockholder > -1 && lockcount++ < 100) {
|
||||
printf("unlocker (%d) != lock holder (%d)\n",
|
||||
p->p_pid, ip->i_lockholder);
|
||||
panic("ufs_unlock: bad unlock request");
|
||||
}
|
||||
ip->i_lockholder = 0;
|
||||
#endif
|
||||
ip->i_flag &= ~IN_LOCKED;
|
||||
|
Loading…
Reference in New Issue
Block a user