1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:30:05 -07:00

runtime: fix warnings on Plan 9

warning: pkg/runtime/mgc0.c:2352 format mismatch p UVLONG, arg 2
warning: pkg/runtime/mgc0.c:2352 format mismatch p UVLONG, arg 3

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/71950044
This commit is contained in:
David du Colombier 2014-03-06 20:56:22 +01:00
parent a1695d2ea3
commit fb5e1e1fa1

View File

@ -2349,7 +2349,7 @@ gc(struct gc_args *args)
heap1 = mstats.heap_alloc;
updatememstats(&stats);
if(heap1 != mstats.heap_alloc) {
runtime·printf("runtime: mstats skew: heap=%p/%p\n", heap1, mstats.heap_alloc);
runtime·printf("runtime: mstats skew: heap=%D/%D\n", heap1, mstats.heap_alloc);
runtime·throw("mstats skew");
}
obj = mstats.nmalloc - mstats.nfree;