summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-04-01 19:28:10 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-04-01 19:28:10 +0200
commit5d3d085492010ab1f4900892e000a3c175bcac90 (patch)
treef489a71df962892e1c4330120e3ac1d08c9864bf
parentd41b6136f5880409a5a57e895341933699bc2b06 (diff)
downloadplan9front-5d3d085492010ab1f4900892e000a3c175bcac90.tar.xz
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 :)
-rw-r--r--sys/src/9/port/devproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devproc.c b/sys/src/9/port/devproc.c
index c49f5f677..1258e46d8 100644
--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -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' : ' ',