Fix a couple of format string mixups.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14108 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/memcheck/mc_errors.c b/memcheck/mc_errors.c
index 821e369..cd8cd6d 100644
--- a/memcheck/mc_errors.c
+++ b/memcheck/mc_errors.c
@@ -609,7 +609,7 @@
extra->Err.Overlap.dst, extra->Err.Overlap.src );
} else {
emit( " <what>Source and destination overlap "
- "in %s(%#lx, %#lx, %lu)</what>\n",
+ "in %pS(%#lx, %#lx, %lu)</what>\n",
VG_(get_error_string)(err),
extra->Err.Overlap.dst, extra->Err.Overlap.src,
extra->Err.Overlap.szB );
@@ -617,7 +617,7 @@
VG_(pp_ExeContext)( VG_(get_error_where)(err) );
} else {
if (extra->Err.Overlap.szB == 0) {
- emit( "Source and destination overlap in %pS(%#lx, %#lx)\n",
+ emit( "Source and destination overlap in %s(%#lx, %#lx)\n",
VG_(get_error_string)(err),
extra->Err.Overlap.dst, extra->Err.Overlap.src );
} else {