diff options
| author | Austin Clements <austin@google.com> | 2019-04-19 17:39:11 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2019-04-22 14:08:47 +0000 |
| commit | db42bb3b70fe82e9d33011fb36b4171897663ccf (patch) | |
| tree | 5bfb002bc1dddbb753673fe4026488760900f1ee /src | |
| parent | 68d4b1265ec7915dccfccf6c0e32f9ab2d9c3a86 (diff) | |
| download | go-db42bb3b70fe82e9d33011fb36b4171897663ccf.tar.xz | |
runtime: error formatting fix
g.m is an muintptr, but we want to print it in hex like a pointer.
Change-Id: Ifc48ed77fb2e93cff7a49d98adc7b9679d26c3b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/172988
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/proc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 16794e1ab0..30ddeadff5 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -4124,7 +4124,7 @@ func releasep() *p { } _p_ := _g_.m.p.ptr() if _p_.m.ptr() != _g_.m || _p_.mcache != _g_.m.mcache || _p_.status != _Prunning { - print("releasep: m=", _g_.m, " m->p=", _g_.m.p.ptr(), " p->m=", _p_.m, " m->mcache=", _g_.m.mcache, " p->mcache=", _p_.mcache, " p->status=", _p_.status, "\n") + print("releasep: m=", _g_.m, " m->p=", _g_.m.p.ptr(), " p->m=", hex(_p_.m), " m->mcache=", _g_.m.mcache, " p->mcache=", _p_.mcache, " p->status=", _p_.status, "\n") throw("releasep: invalid p state") } if trace.enabled { |
