aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-02-03 10:03:01 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-02-18 10:36:39 +0000
commita364a116f904a9e019c41535cc25732b715b8728 (patch)
tree42ae9103bf089aa2e361c71854ea8234d11cb9ba /ld
parentb0e4d2bd9b2f18c1d3dc6d0c73599f95bb283316 (diff)
downloadgdb-a364a116f904a9e019c41535cc25732b715b8728.zip
gdb-a364a116f904a9e019c41535cc25732b715b8728.tar.gz
gdb-a364a116f904a9e019c41535cc25732b715b8728.tar.bz2
ld: remove stray debug fprintf
In this commit: commit ace667e59aede65c400381f1cff704b61e8ccb0b Date: Mon Jul 18 21:00:00 2016 +0100 ld: Restore file offset after a plugin fails to claim a file I inadvertently left in a stray fprintf call. Removed in this commit. ld/ChangeLog: * testplugin.c (record_read_length): Remove debug fprintf.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testplug.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 26fbe40..b7c7bbb 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * testplugin.c (record_read_length): Remove debug fprintf.
+
2021-02-14 Alan Modra <amodra@gmail.com>
* testsuite/ld-cdtest/cdtest.exp,
diff --git a/ld/testplug.c b/ld/testplug.c
index 483f0f0..645004e 100644
--- a/ld/testplug.c
+++ b/ld/testplug.c
@@ -176,10 +176,7 @@ record_read_length (const char *length)
while (*tmp != '\0' && isdigit (*tmp))
++tmp;
if (*tmp != '\0' || *length == '\0')
- {
- fprintf (stderr, "APB: Bad length string: %s\n", tmp);
- return LDPS_ERR;
- }
+ return LDPS_ERR;
bytes_to_read_before_claim = atoi (length);
return LDPS_OK;