X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fld-acess_src%2Fmemory.c;h=f1147c265242f5e5e60dc97bd6c8e74e70db364d;hb=ff00630ed805237683c2f8fa47765a1cf5a07578;hp=872cb2cfb3ebaddb81d484b572b70ff98d79f33c;hpb=a41f3e5efdf853726d078dc03550de40e9d63bdd;p=tpg%2Facess2.git diff --git a/AcessNative/ld-acess_src/memory.c b/AcessNative/ld-acess_src/memory.c index 872cb2cf..f1147c26 100644 --- a/AcessNative/ld-acess_src/memory.c +++ b/AcessNative/ld-acess_src/memory.c @@ -27,14 +27,14 @@ int AllocateMemory(uintptr_t VirtAddr, size_t ByteCount) return -1; } #else - printf("AllocateMemory: mmap(%p, %lx, ...)\n", (void*)base, ByteCount); +// printf("AllocateMemory: mmap(%p, 0x%lx, ...)\n", (void*)base, ByteCount); tmp = mmap((void*)base, size, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0); if( tmp == MAP_FAILED ) { printf("ERROR: Unable to allocate memory\n"); perror("AllocateMemory"); return -1; } - printf("AllocateMemory: RETURN 0\n"); +// printf("AllocateMemory: RETURN 0\n"); #endif return 0; }