From 08a1631cda0e94188e584fe846a93d05ef2528df Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 1 Mar 2013 11:57:50 -0500 Subject: [PATCH] runtime: fix build on openbsd, plan9 R=golang-dev CC=golang-dev https://golang.org/cl/7438052 --- src/pkg/runtime/thread_openbsd.c | 4 ++-- src/pkg/runtime/thread_plan9.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pkg/runtime/thread_openbsd.c b/src/pkg/runtime/thread_openbsd.c index 9150efaa1b..700c481475 100644 --- a/src/pkg/runtime/thread_openbsd.c +++ b/src/pkg/runtime/thread_openbsd.c @@ -131,8 +131,8 @@ runtime·newosproc(M *mp, void *stk) if(0) { runtime·printf( - "newosproc stk=%p m=%p g=%p fn=%p id=%d/%d ostk=%p\n", - stk, mp, mp->g0, fn, mp->id, (int32)mp->tls[0], &mp); + "newosproc stk=%p m=%p g=%p id=%d/%d ostk=%p\n", + stk, mp, mp->g0, mp->id, (int32)mp->tls[0], &mp); } mp->tls[0] = mp->id; // so 386 asm can find it diff --git a/src/pkg/runtime/thread_plan9.c b/src/pkg/runtime/thread_plan9.c index e1c7334cfb..7f94623e7b 100644 --- a/src/pkg/runtime/thread_plan9.c +++ b/src/pkg/runtime/thread_plan9.c @@ -227,8 +227,8 @@ runtime·newosproc(M *mp, void *stk) { mp->tls[0] = mp->id; // so 386 asm can find it if(0){ - runtime·printf("newosproc stk=%p m=%p g=%p fn=%p rfork=%p id=%d/%d ostk=%p\n", - stk, mp, mp->g0, fn, runtime·rfork, mp->id, (int32)mp->tls[0], &mp); + runtime·printf("newosproc stk=%p m=%p g=%p rfork=%p id=%d/%d ostk=%p\n", + stk, mp, mp->g0, runtime·rfork, mp->id, (int32)mp->tls[0], &mp); } if(runtime·rfork(RFPROC|RFMEM|RFNOWAIT, stk, mp, mp->g0, runtime·mstart) < 0)