(free_check): Print pointer value using %p.
authordrepper <drepper>
Tue, 11 Aug 1998 14:01:54 +0000 (14:01 +0000)
committerdrepper <drepper>
Tue, 11 Aug 1998 14:01:54 +0000 (14:01 +0000)
(realloc_check): Likewise.

malloc/malloc.c

index 3d932db..76a0b00 100644 (file)
@@ -4330,7 +4330,7 @@ free_check(mem, caller) Void_t* mem; const Void_t *caller;
     (void)mutex_unlock(&main_arena.mutex);
     switch(check_action) {
     case 1:
-      fprintf(stderr, "free(): invalid pointer %lx!\n", (long)(mem));
+      fprintf(stderr, "free(): invalid pointer %p!\n", (long)(mem));
       break;
     case 2:
       abort();
@@ -4369,7 +4369,7 @@ realloc_check(oldmem, bytes, caller)
     (void)mutex_unlock(&main_arena.mutex);
     switch(check_action) {
     case 1:
-      fprintf(stderr, "realloc(): invalid pointer %lx!\n", (long)(oldmem));
+      fprintf(stderr, "realloc(): invalid pointer %p!\n", (long)(oldmem));
       break;
     case 2:
       abort();