ref: 45afecffd1849f8ae6672a389bb430779afce9e3
parent: d73c67660bd2573787e99c300806c2f1394a8b52
author: cinap_lenrek <[email protected]>
date: Tue Sep 18 21:11:49 EDT 2018
kprof: fix precedence (thanks geoff)
--- a/sys/src/cmd/kprof.c
+++ b/sys/src/cmd/kprof.c
@@ -96,9 +96,11 @@
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