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)
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,