Skip to content

Commit

Permalink
Use %z modifier for printing a size_t variable
Browse files Browse the repository at this point in the history
This fixes issue #1088
  • Loading branch information
dbussink committed Jul 30, 2011
1 parent db21b65 commit 7305838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/vm.cpp
Expand Up @@ -382,7 +382,7 @@ namespace rubinius {
uint64_t fin_time = get_current_time();
int diff = (fin_time - start_time) / 1000000;
size_t kb = om->mature_bytes_allocated() / 1024;
fprintf(stderr, "[Full GC %lukB => %lukB %2dms]\n",
fprintf(stderr, "[Full GC %zukB => %zukB %2dms]\n",
before_kb,
kb,
diff);
Expand Down

0 comments on commit 7305838

Please sign in to comment.