diff --git a/source/toy_memory.c b/source/toy_memory.c index 1e9e8d1..32f8218 100644 --- a/source/toy_memory.c +++ b/source/toy_memory.c @@ -22,7 +22,7 @@ void* Toy_private_defaultMemoryAllocator(void* pointer, size_t oldSize, size_t n void* mem = realloc(pointer, newSize); if (mem == NULL) { - fprintf(stderr, TOY_CC_ERROR "[internal] Memory allocation error (requested %d for %ld, replacing %d)\n" TOY_CC_RESET, (int)newSize, (long int)pointer, (int)oldSize); + fprintf(stderr, TOY_CC_ERROR "[internal] Memory allocation error (requested %d, replacing %d)\n" TOY_CC_RESET, (int)newSize, (int)oldSize); exit(-1); } diff --git a/tools/memusage/main.c b/tools/memusage/main.c index 9d34cc0..d938ea7 100644 --- a/tools/memusage/main.c +++ b/tools/memusage/main.c @@ -32,7 +32,7 @@ static void* trackerAllocator(void* pointer, size_t oldSize, size_t newSize) { void* mem = realloc(pointer, newSize); if (mem == NULL) { - fprintf(stderr, TOY_CC_ERROR "[tracker] Memory allocation error (requested %d for %ld, replacing %d)\n" TOY_CC_RESET, (int)newSize, (long int)pointer, (int)oldSize); + fprintf(stderr, TOY_CC_ERROR "[internal] Memory allocation error (requested %d, replacing %d)\n" TOY_CC_RESET, (int)newSize, (int)oldSize); exit(-1); }