aboutsummaryrefslogtreecommitdiff
path: root/benchtests
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2014-02-21 11:17:41 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-02-21 11:30:03 +0530
commitbd939d23227e910e2726ac28d2c3b259869aa594 (patch)
treee1484e6b1135e7d1a43f17120fab60ab8cf37803 /benchtests
parentbc688c10296cb416c082e44aa8bf881505aec64a (diff)
downloadglibc-bd939d23227e910e2726ac28d2c3b259869aa594.zip
glibc-bd939d23227e910e2726ac28d2c3b259869aa594.tar.gz
glibc-bd939d23227e910e2726ac28d2c3b259869aa594.tar.bz2
print length in strrchr benchtest
The return criteria of strrchr() is to read till NULL even if the search character is hit. So its better to print len instead of pos.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/bench-strrchr.c2
1 files changed, 1 insertions, 1 deletions
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);