git: 9front

Download patch

ref: a7daaf05dcbd0b1da6f17167ed40a62a40f45807
parent: a45d54b5d2eb676fc88f40cca59d55c6266466b3
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' : ' ',
--