devproc: change address format in segment file to %8p (thanks eekee)

the original format for addresses was %8lux which was changed
to %p for amd64. this broke linuxemu which assumes fixed format
in the segment file. as a compromize we change it to %8p and
amd64 port of linuxemu will hopefully use a more robust parser :)
This commit is contained in:
cinap_lenrek 2014-04-01 19:28:10 +02:00
parent d41b6136f5
commit 5d3d085492

View file

@ -914,7 +914,7 @@ procread(Chan *c, void *va, long n, vlong off)
sg = p->seg[i];
if(sg == 0)
continue;
j += sprint(statbuf+j, "%-6s %c%c %p %p %4ld\n",
j += sprint(statbuf+j, "%-6s %c%c %8p %8p %4ld\n",
sname[sg->type&SG_TYPE],
sg->type&SG_RONLY ? 'R' : ' ',
sg->profile ? 'P' : ' ',