From 82ba26c4dcfa3beaa92ff572c369aa66bf298cd9 Mon Sep 17 00:00:00 2001 From: claudio Date: Sun, 20 Oct 2024 11:21:24 +0000 Subject: [PATCH] VM_MAP_BUSY and VM_MAP_WANTLOCK will be removed soon, prep for that. OK dlg@ --- usr.sbin/procmap/procmap.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/usr.sbin/procmap/procmap.c b/usr.sbin/procmap/procmap.c index c8d19a106b6..ea307adb0ce 100644 --- a/usr.sbin/procmap/procmap.c +++ b/usr.sbin/procmap/procmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procmap.c,v 1.73 2024/08/28 14:22:36 naddy Exp $ */ +/* $OpenBSD: procmap.c,v 1.74 2024/10/20 11:21:24 claudio Exp $ */ /* $NetBSD: pmap.c,v 1.1 2002/09/01 20:32:44 atatat Exp $ */ /* @@ -459,8 +459,14 @@ process_map(kvm_t *kd, pid_t pid, struct kinfo_proc *proc, struct sum *sum) vmmap_flags & VM_MAP_PAGEABLE ? " PAGEABLE" : "", vmmap_flags & VM_MAP_INTRSAFE ? " INTRSAFE" : "", vmmap_flags & VM_MAP_WIREFUTURE ? " WIREFUTURE" : "", - vmmap_flags & VM_MAP_BUSY ? " BUSY" : "", - vmmap_flags & VM_MAP_WANTLOCK ? " WANTLOCK" : "", +#ifdef VM_MAP_BUSY + vmmap_flags & VM_MAP_BUSY ? " BUSY" : +#endif + "", +#ifdef VM_MAP_WANTLOCK + vmmap_flags & VM_MAP_WANTLOCK ? " WANTLOCK" : +#endif + "", #if VM_MAP_TOPDOWN > 0 vmmap_flags & VM_MAP_TOPDOWN ? " TOPDOWN" : #endif -- 2.20.1