From: Richard Kettlewell Date: Mon, 1 Oct 2007 09:31:57 +0000 (+0100) Subject: remove debugging guff, sorry X-Git-Tag: debian-1_5_99dev8~187 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/7b73a310fc76e120e9ea569ceb665da7363831d8 remove debugging guff, sorry --- diff --git a/disobedience/control.c b/disobedience/control.c index cb2d63c..ba5b202 100644 --- a/disobedience/control.c +++ b/disobedience/control.c @@ -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) diff --git a/disobedience/log.c b/disobedience/log.c index 943c5e3..ccb883a 100644 --- a/disobedience/log.c +++ b/disobedience/log.c @@ -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) { diff --git a/lib/eclient.c b/lib/eclient.c index 970b9ab..d12cf2b 100644 --- a/lib/eclient.c +++ b/lib/eclient.c @@ -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 */