Suppress stack-switching message in XML mode.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8012 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_stacks.c b/coregrind/m_stacks.c
index 9a51525..10cafdf 100644
--- a/coregrind/m_stacks.c
+++ b/coregrind/m_stacks.c
@@ -301,7 +301,7 @@
          permissions.  Seems to work well with Netscape 4.X.  Really the
          only remaining difficulty is knowing exactly when a stack switch is
          happening. */
-      if (VG_(clo_verbosity) > 0 && moans > 0) {
+      if (VG_(clo_verbosity) > 0 && moans > 0 && !VG_(clo_xml)) {
          moans--;
          VG_(message)(Vg_UserMsg,
             "Warning: client switching stacks?  "