Don't print pointers as ints, to quiet a warning
authorPhil Miller <mille121@illinois.edu>
Thu, 5 May 2011 21:45:18 +0000 (16:45 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 5 May 2011 21:45:52 +0000 (16:45 -0500)
src/conv-core/memory-charmdebug.c

index 8b883d2f1e48c5b1c8b2fcd29b1b827dfde4f78f..33b95df4b702fcde162cd0479f0259c62cc49c7d 100644 (file)
@@ -391,7 +391,7 @@ void check_memory_leaks(LeakSearchInfo *info) {
     begin_bss = ntohl(((char**)(req->extra))[2]);
     end_bss = ntohl(((char**)(req->extra))[3]) - sizeof(char*) + 1;
   }*/
-  printf("scanning stack from %p (%d) to %p (%d)\n",begin_stack,begin_stack,end_stack,end_stack);
+  printf("scanning stack from %p to %p\n", begin_stack, end_stack);
   for (scanner = begin_stack; scanner < end_stack; scanner+=sizeof(char*)) {
     fnd = (Slot**)CkHashtableGet(table, scanner);
     //if (fnd != NULL) printf("scanning stack %p, %d\n",*fnd,isLeakSlot(*fnd));
@@ -404,7 +404,7 @@ void check_memory_leaks(LeakSearchInfo *info) {
       PCQueuePush(inProgress, (char*)found);
     }
   }
-  printf("scanning data from %p (%d) to %p (%d)\n",info->begin_data,info->begin_data,info->end_data,info->end_data);
+  printf("scanning data from %p to %p\n", info->begin_data, info->end_data);
   for (scanner = info->begin_data; scanner < info->end_data; scanner+=sizeof(char*)) {
     //fprintf(fd, "scanner = %p\n",scanner);
     //fflush(fd);
@@ -419,7 +419,7 @@ void check_memory_leaks(LeakSearchInfo *info) {
       PCQueuePush(inProgress, (char*)found);
     }
   }
-  printf("scanning bss from %p (%d) to %p (%d)\n",info->begin_bss,info->begin_bss,info->end_bss,info->end_bss);
+  printf("scanning bss from %p to %p\n", info->begin_bss, info->end_bss);
   for (scanner = info->begin_bss; scanner < info->end_bss; scanner+=sizeof(char*)) {
     //printf("bss: %p %p\n",scanner,*(char**)scanner);
     fnd = (Slot**)CkHashtableGet(table, scanner);