Print readers count as unsigned in ddb 'show lock'.

Submitted by:	attilio
This commit is contained in:
John Baldwin 2007-03-13 16:51:27 +00:00
parent 07cc71882a
commit c1f2a5334d

View File

@ -846,8 +846,8 @@ db_show_rwlock(struct lock_object *lock)
if (rw->rw_lock == RW_UNLOCKED) if (rw->rw_lock == RW_UNLOCKED)
db_printf("UNLOCKED\n"); db_printf("UNLOCKED\n");
else if (rw->rw_lock & RW_LOCK_READ) else if (rw->rw_lock & RW_LOCK_READ)
db_printf("RLOCK: %jd locks\n", db_printf("RLOCK: %ju locks\n",
(intmax_t)(RW_READERS(rw->rw_lock))); (uintmax_t)(RW_READERS(rw->rw_lock)));
else { else {
td = rw_wowner(rw); td = rw_wowner(rw);
db_printf("WLOCK: %p (tid %d, pid %d, \"%s\")\n", td, db_printf("WLOCK: %p (tid %d, pid %d, \"%s\")\n", td,