summaryrefslogtreecommitdiff
path: root/sys/src/cmd/kprof.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-09-19 01:11:49 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-09-19 01:11:49 +0200
commit45afecffd1849f8ae6672a389bb430779afce9e3 (patch)
tree5cdeafde512a1f2e1da89b641b7a6895e1b3fd61 /sys/src/cmd/kprof.c
parentd73c67660bd2573787e99c300806c2f1394a8b52 (diff)
kprof: fix precedence (thanks geoff)
Diffstat (limited to 'sys/src/cmd/kprof.c')
-rw-r--r--sys/src/cmd/kprof.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/kprof.c b/sys/src/cmd/kprof.c
index 4dab86dc1..530386004 100644
--- a/sys/src/cmd/kprof.c
+++ b/sys/src/cmd/kprof.c
@@ -96,9 +96,11 @@ main(int argc, char *argv[])
error(0, "no text symbols");
tbase = mach->kbase;
- if(tbase != s.value & ~0xFFF)
+ if(tbase != (s.value & ~0xFFF)){
print("warning: kbase %.8llux != tbase %.8llux\n",
tbase, s.value&~0xFFF);
+ tbase = s.value;
+ }
print("KTZERO %.8llux PGSIZE %dKb\n", tbase, mach->pgsize/1024);
/*
* Accumulate counts for each function