FAT: Just use braces in lockmgr_assert.
Otherwise we encounter a different problem under KDEBUG_LEVEL=2.
This commit is contained in:
@@ -72,10 +72,11 @@ static inline void
|
||||
lockmgr_assert(const struct lock* lk, int what)
|
||||
{
|
||||
#ifndef FS_SHELL
|
||||
if (what == KA_XLOCKED)
|
||||
if (what == KA_XLOCKED) {
|
||||
ASSERT_WRITE_LOCKED_RW_LOCK(&lk->haikuRW);
|
||||
else
|
||||
panic("lockmgr_assert: unrecognized flag\n");
|
||||
} else {
|
||||
panic("lockmgr_assert: unrecognized flag\n");
|
||||
}
|
||||
#endif // !FS_SHELL
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user