summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2008-07-25 12:05:05 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2008-07-25 12:05:05 +0000
commit4baecaa0c51548c6457e7a45859a87a876e92991 (patch)
treeddc3925ac87af8ecc463fee51a7756d87c707ebc /sys/uvm
parentefab4114906956f48f78a998f64b445ebdc9c9a1 (diff)
Correct printing of the pg_flags for ddb.
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_map.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index 899dacd668e..e9f7e2ad21a 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.102 2008/07/25 12:02:09 art Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.103 2008/07/25 12:05:04 art Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -3744,9 +3744,8 @@ uvm_object_printit(uobj, full, pr)
static const char page_flagbits[] =
"\20\1BUSY\2WANTED\3TABLED\4CLEAN\5CLEANCHK\6RELEASED\7FAKE\10RDONLY"
- "\11ZERO\15PAGER1";
-static const char page_pqflagbits[] =
- "\20\1FREE\2INACTIVE\3ACTIVE\4LAUNDRY\5ANON\6AOBJ";
+ "\11ZERO\15PAGER1\20FREE\21INACTIVE\22ACTIVE\24ENCRYPT\30PMAP0"
+ "\31PMAP1\32PMAP2\33PMAP3";
void
uvm_page_printit(pg, full, pr)
@@ -3757,14 +3756,10 @@ uvm_page_printit(pg, full, pr)
struct vm_page *tpg;
struct uvm_object *uobj;
struct pglist *pgl;
- char pgbuf[128];
- char pqbuf[128];
(*pr)("PAGE %p:\n", pg);
- snprintf(pgbuf, sizeof(pgbuf), "%b", pg->pg_flags, page_flagbits);
- snprintf(pqbuf, sizeof(pqbuf), "%b", pg->pg_flags, page_pqflagbits);
- (*pr)(" flags=%s, pg_flags=%s, vers=%d, wire_count=%d, pa=0x%llx\n",
- pgbuf, pqbuf, pg->pg_version, pg->wire_count,
+ (*pr)(" flags=%b, vers=%d, wire_count=%d, pa=0x%llx\n",
+ pg->pg_flags, page_flagbits, pg->pg_version, pg->wire_count,
(long long)pg->phys_addr);
(*pr)(" uobject=%p, uanon=%p, offset=0x%llx loan_count=%d\n",
pg->uobject, pg->uanon, (long long)pg->offset, pg->loan_count);