Fix error message in memmove test to display correct src pointer
authorSunil K Pandey <skpgkp2@gmail.com>
Thu, 26 Aug 2021 14:51:08 +0000 (07:51 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Thu, 26 Aug 2021 16:34:27 +0000 (09:34 -0700)
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
string/test-memmove.c

index 670094c..02f2170 100644 (file)
@@ -298,7 +298,7 @@ do_test2 (size_t offset)
                {
                  error (0, 0,
                         "Wrong result in function %s dst \"%p\" src \"%p\" offset \"%zd\"",
-                        impl->name, dst, large_buf, i);
+                        impl->name, dst, src, i);
                  ret = 1;
                  munmap ((void *) large_buf, size);
                  return;