Reduce characters to print in db_pte_print and unwrap some short lines.
This commit is contained in:
parent
3112350466
commit
057d89de8f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_interface.c,v 1.14 2021/05/03 19:33:09 skrll Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.15 2021/05/19 11:54:17 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2017 Ryo Shimizu <ryo@nerv.org>
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.14 2021/05/03 19:33:09 skrll Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.15 2021/05/19 11:54:17 skrll Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -360,15 +360,13 @@ db_pte_print(pt_entry_t pte, int level,
|
|||
|
||||
pr(", PA=%lx", l3pte_pa(pte));
|
||||
|
||||
pr(", %s", (pte & LX_BLKPAG_UXN) ?
|
||||
"UXN" : "UX ");
|
||||
pr(", %s", (pte & LX_BLKPAG_PXN) ?
|
||||
"PXN" : "PX ");
|
||||
pr(", %s", (pte & LX_BLKPAG_UXN) ? "UXN" : "UX");
|
||||
pr(", %s", (pte & LX_BLKPAG_PXN) ? "PXN" : "PX");
|
||||
|
||||
if (pte & LX_BLKPAG_CONTIG)
|
||||
pr(", CONTIG");
|
||||
|
||||
pr(", %s", (pte & LX_BLKPAG_NG) ? "NG" : "global");
|
||||
pr(", %s", (pte & LX_BLKPAG_NG) ? "nG" : "G");
|
||||
pr(", %s", (pte & LX_BLKPAG_AF) ?
|
||||
"accessible" :
|
||||
"**fault** ");
|
||||
|
@ -403,10 +401,10 @@ db_pte_print(pt_entry_t pte, int level,
|
|||
pr(", WT");
|
||||
break;
|
||||
case LX_BLKPAG_ATTR_DEVICE_MEM:
|
||||
pr(", DEVICE");
|
||||
pr(", DEV");
|
||||
break;
|
||||
case LX_BLKPAG_ATTR_DEVICE_MEM_SO:
|
||||
pr(", DEVICE(SO)");
|
||||
pr(", DEV(SO)");
|
||||
break;
|
||||
default:
|
||||
pr(", ATTR(%lu)", __SHIFTOUT(pte, LX_BLKPAG_ATTR_INDX));
|
||||
|
|
Loading…
Reference in New Issue