git: 9front

Download patch

ref: 0ca6063c8ecb32da1a63b6ca3048c0c7b93977b2
parent: c1450bf334d9635412cbc3a3f749eb8f2e4ba4eb
author: cinap_lenrek <cinap_lenrek@felloff.net>
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
--