chiark / gitweb /
remove debugging guff, sorry
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 1 Oct 2007 09:31:57 +0000 (10:31 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 1 Oct 2007 09:31:57 +0000 (10:31 +0100)
disobedience/control.c
disobedience/log.c
lib/eclient.c

index cb2d63c04cb75bc3e7db9da1d1f942e4af796dd5..ba5b2025a9de404780b727bde64f20a7133267b1 100644 (file)
@@ -175,10 +175,8 @@ void control_update(void) {
 static void control_monitor(void attribute((unused)) *u) {
   int n;
 
-  fprintf(stderr, "control_monitor\n");
   for(n = 0; n < NICONS; ++n)
     icons[n].update(&icons[n]);
-  fprintf(stderr, "\n");
 }
 
 /** @brief Update the state of one of the control icons
@@ -198,7 +196,6 @@ static void update_icon(const struct icon *icon,
   /* If the connection is down nothing is ever usable */
   if(!(last_state & DISORDER_CONNECTED))
     usable = 0;
-  fprintf(stderr, "%s usable=%d visible=%d\n", icon->tip, usable, visible);
   (visible ? gtk_widget_show : gtk_widget_hide)(icon->button);
   /* Only both updating usability if the button is visible */
   if(visible)
index 943c5e3d97447dd22cdabc64a8274aed3845e52f..ccb883aae28e7d1013382152567ccf4112aedc1d 100644 (file)
@@ -144,7 +144,7 @@ static void log_state(void attribute((unused)) *v,
   const struct monitor *m;
   const unsigned long changes = state ^ last_state;
 
-  info("log_state %s", disorder_eclient_interpret_state(state));
+  D(("log_state %s", disorder_eclient_interpret_state(state)));
   last_state = state;
   /* Tell anything that cares about the state change */
   for(m = monitors; m; m = m->next) {
index 970b9ab5b6b1061a18cc10d450d9559a03ec127f..d12cf2b9ffc2336d1458888245edd5482d4a8222 100644 (file)
@@ -1178,7 +1178,7 @@ static void logline(disorder_eclient *c, const char *line) {
   char **vec;
   uintmax_t when;
 
-  info("log_opcallback [%s]", line);
+  D(("log_opcallback [%s]", line));
   vec = split(line, &nvec, SPLIT_QUOTES, logline_error, c);
   if(nvec < 2) return;                  /* probably an error, already
                                          * reported */