From 5d3d085492010ab1f4900892e000a3c175bcac90 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 1 Apr 2014 19:28:10 +0200 Subject: [PATCH] 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 :) --- sys/src/9/port/devproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' : ' ',