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:
parent
fba0606220
commit
f9fc1ddf75
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user