Print flags as hex instead of an integer.
PR: kern/168210 Submitted by: linimon Reviewed by: alc Approved by: cperciva MFC after: 3 days
This commit is contained in:
parent
bbf0eac45f
commit
23c67e54ce
@ -1391,7 +1391,7 @@ keg_ctor(void *mem, int size, void *udata, int flags)
|
||||
hash_alloc(&keg->uk_hash);
|
||||
|
||||
#ifdef UMA_DEBUG
|
||||
printf("UMA: %s(%p) size %d(%d) flags %d ipers %d ppera %d out %d free %d\n",
|
||||
printf("UMA: %s(%p) size %d(%d) flags %#x ipers %d ppera %d out %d free %d\n",
|
||||
zone->uz_name, zone, keg->uk_size, keg->uk_rsize, keg->uk_flags,
|
||||
keg->uk_ipers, keg->uk_ppera,
|
||||
(keg->uk_ipers * keg->uk_pages) - keg->uk_free, keg->uk_free);
|
||||
@ -3154,7 +3154,7 @@ uma_print_keg(uma_keg_t keg)
|
||||
{
|
||||
uma_slab_t slab;
|
||||
|
||||
printf("keg: %s(%p) size %d(%d) flags %d ipers %d ppera %d "
|
||||
printf("keg: %s(%p) size %d(%d) flags %#x ipers %d ppera %d "
|
||||
"out %d free %d limit %d\n",
|
||||
keg->uk_name, keg, keg->uk_size, keg->uk_rsize, keg->uk_flags,
|
||||
keg->uk_ipers, keg->uk_ppera,
|
||||
@ -3178,7 +3178,7 @@ uma_print_zone(uma_zone_t zone)
|
||||
uma_klink_t kl;
|
||||
int i;
|
||||
|
||||
printf("zone: %s(%p) size %d flags %d\n",
|
||||
printf("zone: %s(%p) size %d flags %#x\n",
|
||||
zone->uz_name, zone, zone->uz_size, zone->uz_flags);
|
||||
LIST_FOREACH(kl, &zone->uz_kegs, kl_link)
|
||||
uma_print_keg(kl->kl_keg);
|
||||
|
Loading…
Reference in New Issue
Block a user