Skip to content

Commit

Permalink
use %lu instead of %d, put in missing output in one case
Browse files Browse the repository at this point in the history
MasterDuke17++
  • Loading branch information
timo committed Oct 2, 2017
1 parent 483b3b8 commit 235f614
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/fixedsizealloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ void MVM_fixed_size_free(MVMThreadContext *tc, MVMFixedSizeAlloc *al, size_t byt
char command[128];
snprintf(&command, 128, "check_memory defined %p %d", dbg, bytes + 8);
VALGRIND_MONITOR_COMMAND(command);
VALGRIND_PRINTF_BACKTRACE("Fixed size allocator: wrong size in free: expected %d, got %d", dbg->alloc_size, bytes);
VALGRIND_PRINTF_BACKTRACE("Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
}
else {
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %d, got %d", dbg->alloc_size, bytes);
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
}
#else
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %d, got %d", dbg->alloc_size, bytes);
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
#endif
}
MVM_free(dbg);
Expand Down Expand Up @@ -319,16 +319,16 @@ void MVM_fixed_size_free_at_safepoint(MVMThreadContext *tc, MVMFixedSizeAlloc *a
if (dbg->alloc_size != bytes) {
#ifdef MVM_VALGRIND_SUPPORT
if (RUNNING_ON_VALGRIND) {
char command[128]; snprintf(&command, 128, "check_memory defined %p %d", dbg, bytes + 8); VALGRIND_MONITOR_COMMAND(command);
VALGRIND_PRINTF_BACKTRACE("Fixed size allocator: wrong size in free: expected %d, got %d", dbg->alloc_size, bytes);
char command[128]; snprintf(&command, 128, "check_memory defined %p %lu", dbg, bytes + 8); VALGRIND_MONITOR_COMMAND(command);
VALGRIND_PRINTF_BACKTRACE("Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
}
else {
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %d, got %d", dbg->alloc_size, bytes);
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
}
#else
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %d, got %d", dbg->alloc_size, bytes);
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
#endif
MVM_panic(1, "Fixed size allocator: wrong size in free");
MVM_panic(1, "Fixed size allocator: wrong size in free: expected %lu, got %lu", dbg->alloc_size, bytes);
}
add_to_overflows_safepoint_free_list(tc, al, dbg);
#else
Expand Down

0 comments on commit 235f614

Please sign in to comment.