mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
Re: PR25244, --print-memory-usage, division by zero if MEMORY length is zero
Do print the linefeed when length is zero. PR 25244 * ldlang.c (lang_print_memory_usage): Correct last patch.
This commit is contained in:
parent
2dc4b12fcd
commit
2410edcd31
@ -1,3 +1,8 @@
|
||||
2019-12-05 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 25244
|
||||
* ldlang.c (lang_print_memory_usage): Correct last patch.
|
||||
|
||||
2019-12-05 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 25243
|
||||
|
@ -9281,7 +9281,8 @@ lang_print_memory_usage (void)
|
||||
if (r->length != 0)
|
||||
{
|
||||
double percent = used_length * 100.0 / r->length;
|
||||
printf (" %6.2f%%\n", percent);
|
||||
printf (" %6.2f%%", percent);
|
||||
}
|
||||
printf ("\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user