summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-04 10:13:36 +0200
committerxengineering <me@xengineering.eu>2022-10-04 10:13:36 +0200
commitab499add5ac6bc8c61b4fe32838a2a33f81e4867 (patch)
tree5624fe9054a69284f1fd4460db86df0e93e4a4f3 /gtk.c
parentf621530188b3f87b156a92dd8315b7e87a2eba01 (diff)
downloadlimox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar
limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar.zst
limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.zip
Redirect debug output to stderr
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk.c b/gtk.c
index 03dfe79..7540b19 100644
--- a/gtk.c
+++ b/gtk.c
@@ -50,7 +50,7 @@ static void connect_cb(void) {
gtk_stack_set_visible_child(GTK_STACK(stack), roster_layout_box);
// just dummy output
- printf("Connecting with:\nJID: %s\nPWD: %s\n", jid_text, pwd_text);
+ fprintf(stderr, "Connecting with:\nJID: %s\nPWD: %s\n", jid_text, pwd_text);
net_connect(jid_text, pwd_text);
}
@@ -60,7 +60,7 @@ static void disconnect_cb(void) {
gtk_stack_set_visible_child(GTK_STACK(stack), connector_box);
// just dummy output
- printf("Disconnected!\n");
+ fprintf(stderr, "Disconnected!\n");
net_disconnect();
}
@@ -232,10 +232,10 @@ void gui_add_roster_item_widget(roster_item_t* item) {
// print debug message
if (item->name) {
- printf("roster item: %s, %s, sub:%d\n", item->name, item->jid,
+ fprintf(stderr, "roster item: %s, %s, sub:%d\n", item->name, item->jid,
item->sub);
} else {
- printf("roster item: (no name), %s, sub:%d\n", item->jid, item->sub);
+ fprintf(stderr, "roster item: (no name), %s, sub:%d\n", item->jid, item->sub);
}
// create widget for roster item