pc64: print only 8 hex chars dumpstack sp/pc

kernel addresses are sign extended to 64 bit. upper bits
are not really helpfull.
This commit is contained in:
cinap_lenrek 2014-02-02 05:49:30 +01:00
parent a6fd3cc8e3
commit 47f551bcea

View file

@ -571,7 +571,7 @@ _dumpstack(Ureg *ureg)
* (((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){