1
0
mirror of https://github.com/golang/go synced 2024-11-19 20:54:39 -07:00

runtime: fix print - no %v in C

R=r
CC=golang-dev
https://golang.org/cl/4280061
This commit is contained in:
Russ Cox 2011-03-23 11:34:03 -04:00
parent fba0606220
commit f9fc1ddf75
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ runtime·SysMap(void *v, uintptr n)
if(sizeof(void*) == 8) {
p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0);
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");
}
return;

View File

@ -59,7 +59,7 @@ runtime·SysMap(void *v, uintptr n)
if(sizeof(void*) == 8) {
p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0);
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");
}
return;