diff --git a/gold/ChangeLog b/gold/ChangeLog index eeb19e75bd..486b65dab1 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2018-07-11 Franz Sirl + + * main.cc (main): Print m.arena as long long. + 2018-07-09 Cary Coutant * incremental.cc (Sized_incremental_binary::setup_readers): Use diff --git a/gold/main.cc b/gold/main.cc index aa6c698f91..06d810f5e9 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -292,8 +292,8 @@ main(int argc, char** argv) #ifdef HAVE_MALLINFO struct mallinfo m = mallinfo(); - fprintf(stderr, _("%s: total space allocated by malloc: %d bytes\n"), - program_name, m.arena); + fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"), + program_name, static_cast(m.arena)); #endif File_read::print_stats(); Archive::print_stats();