Trim a couple of panic messages.

This commit is contained in:
John Baldwin 2013-09-04 11:52:28 +00:00
parent 908ea20751
commit 5396f9ec5a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255205

View File

@ -1138,18 +1138,12 @@ witness_checkorder(struct lock_object *lock, int flags, const char *file,
iclass = LOCK_CLASS(interlock);
lock1 = find_instance(lock_list, interlock);
if (lock1 == NULL)
kassert_panic(
"interlock (%s) %s not locked while locking"
" %s @ %s:%d",
kassert_panic("interlock (%s) %s not locked @ %s:%d",
iclass->lc_name, interlock->lo_name,
flags & LOP_EXCLUSIVE ? "exclusive" : "shared",
fixup_filename(file), line);
else if ((lock1->li_flags & LI_RECURSEMASK) != 0)
kassert_panic(
"interlock (%s) %s recursed while locking %s"
" @ %s:%d",
kassert_panic("interlock (%s) %s recursed @ %s:%d",
iclass->lc_name, interlock->lo_name,
flags & LOP_EXCLUSIVE ? "exclusive" : "shared",
fixup_filename(file), line);
}