projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc4b12
)
Re: PR25244, --print-memory-usage, division by zero if MEMORY length is zero
author
Alan Modra
<amodra@gmail.com>
Thu, 5 Dec 2019 10:59:21 +0000
(21:29 +1030)
committer
Alan Modra
<amodra@gmail.com>
Thu, 5 Dec 2019 11:01:16 +0000
(21:31 +1030)
Do print the linefeed when length is zero.
PR 25244
* ldlang.c (lang_print_memory_usage): Correct last patch.
ld/ChangeLog
patch
|
blob
|
history
ld/ldlang.c
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index b3318cbcdbafda379333cd6effc0978a3c64aac2..eb15dacdbdb4f2266e286b1872e68b97f779c63e 100644
(file)
--- a/
ld/ChangeLog
+++ b/
ld/ChangeLog
@@
-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
diff --git
a/ld/ldlang.c
b/ld/ldlang.c
index bb3cd912157ec76795f49cecdf98897cfa3c7282..05ea0c881f825d12bd7cd0e3117fd8cf02c9f2a6 100644
(file)
--- a/
ld/ldlang.c
+++ b/
ld/ldlang.c
@@
-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");
}
}