ref: 47f551bcea708c32e654ab68d1f15a17d0cdde46
parent: a6fd3cc8e3db0a5c813ccbdc76f9d2259ef37941
author: cinap_lenrek <[email protected]>
date: Sun Feb 2 00:49:30 EST 2014
pc64: print only 8 hex chars dumpstack sp/pc kernel addresses are sign extended to 64 bit. upper bits are not really helpfull.
--- a/sys/src/9/pc64/trap.c
+++ b/sys/src/9/pc64/trap.c
@@ -571,7 +571,7 @@
* (((uchar*)v)[-2] == 0xFF && ((uchar*)v)[-2] == 0xD0),
* but this is too clever and misses faulting address.
*/
- x += iprint("%.8p=%.8p ", l, v);
+ x += iprint("%.8lux=%.8lux ", (ulong)l, (ulong)v);
i++;
}
if(i == 4){