Commit f9fc1ddf authored by Russ Cox's avatar Russ Cox

runtime: fix print - no %v in C

R=r
CC=golang-dev
https://golang.org/cl/4280061
parent fba06062
...@@ -53,7 +53,7 @@ runtime·SysMap(void *v, uintptr n) ...@@ -53,7 +53,7 @@ runtime·SysMap(void *v, uintptr n)
if(sizeof(void*) == 8) { if(sizeof(void*) == 8) {
p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0); p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0);
if(p != v) { if(p != v) {
runtime·printf("runtime: address space conflict: map(%v) = %v\n", v, p); runtime·printf("runtime: address space conflict: map(%p) = %p\n", v, p);
runtime·throw("runtime: address space conflict"); runtime·throw("runtime: address space conflict");
} }
return; return;
......
...@@ -59,7 +59,7 @@ runtime·SysMap(void *v, uintptr n) ...@@ -59,7 +59,7 @@ runtime·SysMap(void *v, uintptr n)
if(sizeof(void*) == 8) { if(sizeof(void*) == 8) {
p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0); p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0);
if(p != v) { if(p != v) {
runtime·printf("runtime: address space conflict: map(%v) = %v\n", v, p); runtime·printf("runtime: address space conflict: map(%p) = %p\n", v, p);
runtime·throw("runtime: address space conflict"); runtime·throw("runtime: address space conflict");
} }
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment