diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-07-13 15:44:09 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-07-13 15:44:09 -0700 |
| commit | 39151f2ad8d18554af1d6787bae0b02345e1d90b (patch) | |
| tree | c10c032214af521351cd46d6ee23a5007927bc48 /src/rt/memory_region.cpp | |
| parent | 04b239f3cb9d4b62488dc2d219e9bd9a242bdf8f (diff) | |
| download | rust-39151f2ad8d18554af1d6787bae0b02345e1d90b.tar.gz rust-39151f2ad8d18554af1d6787bae0b02345e1d90b.zip | |
Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.
Diffstat (limited to 'src/rt/memory_region.cpp')
| -rw-r--r-- | src/rt/memory_region.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/memory_region.cpp b/src/rt/memory_region.cpp index 269f7f7e0cd..13de56a3361 100644 --- a/src/rt/memory_region.cpp +++ b/src/rt/memory_region.cpp @@ -67,7 +67,7 @@ memory_region::realloc(void *mem, size_t size) { void *newMem = _srv->realloc(mem, size); #ifdef TRACK_ALLOCATIONS if (_allocation_list[index] != mem) { - printf("at index %d, found %p, expected %p\n", + printf("at index %d, found %p, expected %p\n", index, _allocation_list[index], mem); printf("realloc: ptr 0x%" PRIxPTR " is not in allocation_list\n", (uintptr_t) mem); @@ -76,7 +76,7 @@ memory_region::realloc(void *mem, size_t size) { else { _allocation_list[index] = newMem; (*(int*)newMem) = index; - // printf("realloc: stored %p at index %d, replacing %p\n", + // printf("realloc: stored %p at index %d, replacing %p\n", // newMem, index, mem); } #endif @@ -101,7 +101,7 @@ memory_region::malloc(size_t size) { *p = index; // printf("malloc: stored %p at index %d\n", mem, index); #endif - // printf("malloc: ptr 0x%" PRIxPTR " region=%p\n", + // printf("malloc: ptr 0x%" PRIxPTR " region=%p\n", // (uintptr_t) mem, this); if (_synchronized) { _lock.unlock(); } #ifdef TRACK_ALLOCATIONS |
