aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--benchtests/bench-strrchr.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ad0fe6..2a80e08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-21 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
+
+ * benchtests/bench-strrchr.c: Print length instead of position.
+
2014-02-20 Joseph Myers <joseph@codesourcery.com>
[BZ #16611]
diff --git a/benchtests/bench-strrchr.c b/benchtests/bench-strrchr.c
index adcedde..3d42236 100644
--- a/benchtests/bench-strrchr.c
+++ b/benchtests/bench-strrchr.c
@@ -122,7 +122,7 @@ do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char)
else
result = NULL;
- printf ("Length %4zd, alignment in bytes %2zd:", pos, align * sizeof(CHAR));
+ printf ("Length %4zd, alignment in bytes %2zd:", len, align * sizeof(CHAR));
FOR_EACH_IMPL (impl, 0)
do_one_test (impl, (CHAR *) (buf + align), seek_char, result);