Print readers count as unsigned in ddb 'show lock'.
Submitted by: attilio
This commit is contained in:
parent
07cc71882a
commit
c1f2a5334d
@ -846,8 +846,8 @@ db_show_rwlock(struct lock_object *lock)
|
||||
if (rw->rw_lock == RW_UNLOCKED)
|
||||
db_printf("UNLOCKED\n");
|
||||
else if (rw->rw_lock & RW_LOCK_READ)
|
||||
db_printf("RLOCK: %jd locks\n",
|
||||
(intmax_t)(RW_READERS(rw->rw_lock)));
|
||||
db_printf("RLOCK: %ju locks\n",
|
||||
(uintmax_t)(RW_READERS(rw->rw_lock)));
|
||||
else {
|
||||
td = rw_wowner(rw);
|
||||
db_printf("WLOCK: %p (tid %d, pid %d, \"%s\")\n", td,
|
||||
|
Loading…
Reference in New Issue
Block a user