ref: 5d3d085492010ab1f4900892e000a3c175bcac90
parent: d41b6136f5880409a5a57e895341933699bc2b06
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 1 15:28:10 EDT 2014
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 :)
--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -914,7 +914,7 @@
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' : ' ',