[PATCH 2/6] gnome-desktop: remove some more debugging print statements



This simply cleans up a few more debugging print statements.

--- gnome-desktop-2.22.1/libgnome-desktop/monitor-db.c  2008-04-15
11:27:01.000000000 +0100
+++ gnome-desktop-2.22.1.new/libgnome-desktop/monitor-db.c	2008-04-15
11:27:02.000000000 +0100
@@ -919,7 +919,7 @@
     CrtcAssignment *assignment;
     Output **outputs;
 
-    g_print ("applying configuration. Clone: %s\n", yes_no
(conf->clone));
+    //g_print ("applying configuration. Clone: %s\n", yes_no
(conf->clone));
     
     outputs = make_outputs (conf);
 
@@ -937,7 +937,7 @@
     }
     else
     {
-	g_print (" ... no assignment found\n");
+	//g_print (" ... no assignment found\n");
     }
 
     return FALSE;
@@ -956,7 +956,7 @@
         return FALSE;
     }
 
-    g_print ("Reading config file %s\n", get_onetime_filename());
+    //g_print ("Reading config file %s\n", get_onetime_filename());
     configs = configurations_read (get_onetime_filename(), NULL);
     if ( ! configs ) {
         /* No monitors-onetime.xml file, so try monitors.xml */
@@ -1116,12 +1116,13 @@
     RWCrtc *crtc = key;
     CrtcInfo *info = value;
 
-    g_print ("Configuring crtc %x with ", rw_crtc_get_id (crtc));
+    //g_print ("Configuring crtc %x with ", rw_crtc_get_id (crtc));
 
     if (info->mode)
     {
 	int n_outputs = info->outputs->len;
 	
+#if 0
 	g_print ("mode %x, %d outputs (%d %d %d %d), and rotation %d ", 
 		 rw_mode_get_id (info->mode),
 		 n_outputs,
@@ -1129,10 +1130,11 @@
 		 rw_mode_get_width (info->mode),
 		 rw_mode_get_height (info->mode),
 		 info->rotation);
+#endif
     }
     else
     {
-	g_print ("no mode ");
+	//g_print ("no mode ");
     }
     
     if (rw_crtc_set_config (crtc,
@@ -1142,11 +1144,11 @@
 			    (RWOutput **)info->outputs->pdata,
 			    info->outputs->len))
     {
-	g_print ("succeeded\n");
+	//g_print ("succeeded\n");
     }
     else
     {
-	g_print ("failed\n");
+	//g_print ("failed\n");
     }
 }
 
@@ -1156,7 +1158,7 @@
     if ((info->rotation & RW_ROTATION_270)		||
 	(info->rotation & RW_ROTATION_90))
     {
-	g_print ("rotated: %d\n", info->rotation);
+	//g_print ("rotated: %d\n", info->rotation);
 	return TRUE;
     }
     return FALSE;
diff -Nur -x '*.orig' -x '*~'
gnome-desktop-2.22.1/libgnome-desktop/randrwrap.c
gnome-desktop-2.22.1.new/libgnome-desktop/randrwrap.c
--- gnome-desktop-2.22.1/libgnome-desktop/randrwrap.c	2008-04-15
11:27:01.000000000 +0100
+++ gnome-desktop-2.22.1.new/libgnome-desktop/randrwrap.c	2008-04-15
11:27:02.000000000 +0100
@@ -626,7 +626,7 @@
     GPtrArray *a;
     int i;
     
-    g_print ("Output %lx Timestamp: %u\n", output->id,
(guint32)info->timestamp);
+    //g_print ("Output %lx Timestamp: %u\n", output->id,
(guint32)info->timestamp);
 	
     if (!info || !output->info)
     {
@@ -1024,7 +1024,7 @@
     GPtrArray *a;
     int i;
     
-    g_print ("CRTC %lx Timestamp: %u\n", crtc->id,
(guint32)info->timestamp);
+    //g_print ("CRTC %lx Timestamp: %u\n", crtc->id,
(guint32)info->timestamp);
 	
     if (!info)
     {
@@ -1141,7 +1141,7 @@
 static void
 on_screen_changed (RWScreen *screen, gpointer data)
 {
-    g_print ("Changed\n");
+    //g_print ("Changed\n");
 }
 
 static gboolean
@@ -1169,6 +1169,7 @@
     {
 	RWCrtc *crtc = screen->info->crtcs[i];
 	
+#if 0
 	if (crtc->current_mode)
 	{
 	    g_print ("CRTC %p: (%d %d %d %d)\n",
@@ -1179,12 +1180,14 @@
 	{
 	    g_print ("CRTC %p: turned off\n", crtc);
 	}
+#endif
     }
     
     for (i = 0; screen->info->outputs[i]; ++i)
     {
 	RWOutput *output = screen->info->outputs[i];
 	
+#if 0
 	g_print ("Output %s currently", output->name);
 	
 	if (!output->current_crtc)
@@ -1192,6 +1195,7 @@
 	else
 	    g_print (" driven by CRTC %p\n", output->current_crtc);
     }
+#endif
 
     g_timeout_add (500, do_refresh, screen);
     




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]