]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix warnings on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Thu, 6 Mar 2014 19:56:22 +0000 (20:56 +0100)
committerDavid du Colombier <0intro@gmail.com>
Thu, 6 Mar 2014 19:56:22 +0000 (20:56 +0100)
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

src/pkg/runtime/mgc0.c

index 400149c26d9bd291e56ade4f837875c6c272645a..5d386c5c0dfaf1f7e8872a5a065e6cfd36630372 100644 (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;