]> source.dussan.org Git - tigervnc.git/commitdiff
Replaced fprintf(stderr, ...) with proper logging.
authorConstantin Kaplinsky <const@tightvnc.com>
Wed, 10 Oct 2007 01:33:39 +0000 (01:33 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Wed, 10 Oct 2007 01:33:39 +0000 (01:33 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2355 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/x0vncserver/PollingManager.cxx

index 32afb390a93a49780fc2695063a86dd4b666b4be..b506bb4fabbec85e64e7407d8b695d3cdfc2dee3 100644 (file)
@@ -300,10 +300,11 @@ PollingManager::detectVideo()
   // If it does, save new rectangle and inform the server.
   if (!newRect.equals(m_videoRect)) {
     if (newRect.is_empty()) {
-      fprintf(stderr, "No video detected\n");
+      vlog.debug("No video detected");
     } else {
-      fprintf(stderr, "Video rect %dx%d\tat(%d,%d)\n",
-              newRect.width(), newRect.height(), newRect.tl.x, newRect.tl.y);
+      vlog.debug("Detected video %dx%d at (%d,%d)",
+                 newRect.width(), newRect.height(),
+                 newRect.tl.x, newRect.tl.y);
     }
     m_videoRect = newRect;
     m_server->set_video_area(newRect);