When compiled with defining DEBUG_PRINT_NUM_CHANGED_TILES, print the number of changed tiles detected in each polling pass.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2387 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/x0vncserver/PollingManager.cxx b/unix/x0vncserver/PollingManager.cxx
index 8396095..ffc9ed3 100644
--- a/unix/x0vncserver/PollingManager.cxx
+++ b/unix/x0vncserver/PollingManager.cxx
@@ -218,7 +218,15 @@
   // Cleanup.
   delete[] changeFlags;
 
+#ifdef DEBUG_PRINT_NUM_CHANGED_TILES
+  printf("%3d ", nTilesChanged);
+  if (m_pollingStep % 32 == 0) {
+    printf("\n");
+  }
+#endif
+
 #ifdef DEBUG
+  // FIXME: Move this to sendChanges();
   if (nTilesChanged != 0) {
     fprintf(stderr, "#%d# ", nTilesChanged);
   }