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.
This commit is contained in:
Rajalakshmi Srinivasaraghavan 2014-02-21 11:17:41 +05:30 committed by Siddhesh Poyarekar
parent bc688c1029
commit bd939d2322
2 changed files with 5 additions and 1 deletions

View File

@ -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]

View File

@ -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);