aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2015-08-24 21:24:23 -0400
committerMinux Ma <minux@golang.org>2015-08-25 01:37:54 +0000
commit24be0997a20ee7b45dde76dee78404ee9cd9cae7 (patch)
tree404e9a7d5b965ae038e2dff72ee2860ccbb46f85 /src/runtime
parent8286f18b94fe92d056fe0112b2e48f2409f49628 (diff)
downloadgo-24be0997a20ee7b45dde76dee78404ee9cd9cae7.tar.xz
runtime: add a missing hex conversion
gobuf.g is a guintptr, so without hex(), it will be printed as a decimal, which is not very helpful and inconsistent with how other pointers are printed. Change-Id: I7c0432e9709e90a5c3b3e22ce799551a6242d017 Reviewed-on: https://go-review.googlesource.com/13879 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/stack1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack1.go b/src/runtime/stack1.go
index efcb5f25fa..9873bd860b 100644
--- a/src/runtime/stack1.go
+++ b/src/runtime/stack1.go
@@ -669,7 +669,7 @@ func newstack() {
throw("stack growth after fork")
}
if thisg.m.morebuf.g.ptr() != thisg.m.curg {
- print("runtime: newstack called from g=", thisg.m.morebuf.g, "\n"+"\tm=", thisg.m, " m->curg=", thisg.m.curg, " m->g0=", thisg.m.g0, " m->gsignal=", thisg.m.gsignal, "\n")
+ print("runtime: newstack called from g=", hex(thisg.m.morebuf.g), "\n"+"\tm=", thisg.m, " m->curg=", thisg.m.curg, " m->g0=", thisg.m.g0, " m->gsignal=", thisg.m.gsignal, "\n")
morebuf := thisg.m.morebuf
traceback(morebuf.pc, morebuf.sp, morebuf.lr, morebuf.g.ptr())
throw("runtime: wrong goroutine in newstack")