summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-24 09:56:44 +0000
committerpeter <peter@FreeBSD.org>2001-08-24 09:56:44 +0000
commitc05ab921afc21de46a12e5b7ada2f10d8e240df2 (patch)
tree982109c69a7c700d8333ffe06b1c62f94c8bd6da /bin/ps/print.c
parentde99d815fde713bcb78bf383bd0ea89afdae4631 (diff)
downloadFreeBSD-src-c05ab921afc21de46a12e5b7ada2f10d8e240df2.zip
FreeBSD-src-c05ab921afc21de46a12e5b7ada2f10d8e240df2.tar.gz
On today's kernels masking with ~KERNBASE is turning out to be less
than useful. It still hits at least 8 digits. Adjust for reality. This is still not satisfactory for the alpha if you add "-O paddr".
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 62ef392..bd7fc1b 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -432,7 +432,7 @@ wchan(k, ve)
k->ki_p->ki_wmesg);
else
(void)printf("%-*lx", v->width,
- (long)k->ki_p->ki_wchan &~ KERNBASE);
+ (long)k->ki_p->ki_wchan);
} else
(void)printf("%-*s", v->width, "-");
}
@@ -696,7 +696,7 @@ printval(bp, v)
(void)printf(ofmt, v->width, *(u_long *)bp);
break;
case KPTR:
- (void)printf(ofmt, v->width, *(u_long *)bp &~ KERNBASE);
+ (void)printf(ofmt, v->width, *(u_long *)bp);
break;
default:
errx(1, "unknown type %d", v->type);
OpenPOWER on IntegriCloud