Commit 55ad23b9 authored by Tristan Matthews's avatar Tristan Matthews

* #10725: gnome: cleanup logging

parent c0213533
......@@ -39,7 +39,6 @@
AddrBookHandle *addrbook = NULL;
/**
* Callback called after all book have been processed
*/
......@@ -93,7 +92,7 @@ void abook_init()
void *handle = dlopen(PLUGINS_DIR"/libevladdrbook.so", RTLD_LAZY);
if (handle == NULL) {
ERROR("Addressbook: Error: Could not load addressbook");
DEBUG("Did not load addressbook");
return;
}
......@@ -102,7 +101,7 @@ void abook_init()
#define LOAD(func) do { \
addrbook-> func = dlsym(handle, "addressbook_" #func); \
if (addrbook-> func == NULL) \
ERROR("Addressbook: Couldn't load " # func); \
ERROR("Couldn't load " # func); \
} while(0)
......
......@@ -115,10 +115,8 @@ call_selected_cb(GtkTreeSelection *sel, void* data UNUSED)
GtkTreeModel *model = gtk_tree_view_get_model(gtk_tree_selection_get_tree_view(sel));
GtkTreeIter iter;
if (!gtk_tree_selection_get_selected(sel, &model, &iter)) {
DEBUG("gtk_tree_selection_get_selected return non zero!!!!!!!!!!!!!!!!!!!!!!!!! stop selected callback\n");
if (!gtk_tree_selection_get_selected(sel, &model, &iter))
return;
}
if (active_calltree_tab == history_tab)
DEBUG("Current call tree is history");
......
This diff is collapsed.
......@@ -124,14 +124,14 @@ void set_slider_value(const gchar *device, gdouble newval)
if (g_strcmp0(device, "speaker") == 0) {
dev = DEVICE_SPEAKER;
DEBUG("Slider: Set value for speaker: %f\n", newval);
DEBUG("Set value for speaker: %f\n", newval);
}
else if (g_strcmp0(device, "mic") == 0) {
dev = DEVICE_MIC;
DEBUG("Slider: Set value for mic: %f\n", newval);
DEBUG("Set value for mic: %f\n", newval);
}
else {
ERROR("Slider: Unknown device: %s", device);
ERROR("Unknown device: %s", device);
return;
}
......@@ -148,14 +148,14 @@ void set_slider_no_update (const gchar * device, gdouble newval)
if (g_strcmp0(device, "speaker") == 0) {
dev = DEVICE_SPEAKER;
DEBUG("Slider: Set value no update for speaker: %f\n", newval);
DEBUG("Set value no update for speaker: %f\n", newval);
}
else if (g_strcmp0(device, "mic") == 0) {
dev = DEVICE_MIC;
DEBUG("Slider: Set value no update for mic: %f\n", newval);
DEBUG("Set value no update for mic: %f\n", newval);
}
else {
ERROR("Slider: Unknown device: %s", device);
ERROR("Unknown device: %s", device);
return;
}
......@@ -172,8 +172,6 @@ void set_slider_no_update (const gchar * device, gdouble newval)
void toggle_slider_mute_microphone(void)
{
DEBUG("Slider: Mute/Unmute toggle");
switch(device_state) {
case DEVICE_STATE_ACTIVE:
value[DEVICE_MIC] = gtk_range_get_value(GTK_RANGE(slider[DEVICE_MIC]));
......@@ -185,7 +183,7 @@ void toggle_slider_mute_microphone(void)
device_state = DEVICE_STATE_ACTIVE;
break;
default:
ERROR("Slider: Unknown state");
ERROR("Unknown state");
break;
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment