mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Update format string for kve_start/end.
This commit is contained in:
parent
4b91bf7948
commit
41fbf4374b
1 changed files with 3 additions and 2 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <libutil.h>
|
||||
|
||||
#include "procstat.h"
|
||||
|
|
@ -56,8 +57,8 @@ procstat_vm(pid_t pid, struct kinfo_proc *kipp __unused)
|
|||
for (i = 0; i < cnt; i++) {
|
||||
kve = &freep[i];
|
||||
printf("%5d ", pid);
|
||||
printf("%*p ", ptrwidth, kve->kve_start);
|
||||
printf("%*p ", ptrwidth, kve->kve_end);
|
||||
printf("%#*jx ", ptrwidth, (uintmax_t)kve->kve_start);
|
||||
printf("%#*jx ", ptrwidth, (uintmax_t)kve->kve_end);
|
||||
printf("%s", kve->kve_protection & KVME_PROT_READ ? "r" : "-");
|
||||
printf("%s", kve->kve_protection & KVME_PROT_WRITE ? "w" : "-");
|
||||
printf("%s ", kve->kve_protection & KVME_PROT_EXEC ? "x" : "-");
|
||||
|
|
|
|||
Loading…
Reference in a new issue