From ab499add5ac6bc8c61b4fe32838a2a33f81e4867 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Oct 2022 10:13:36 +0200 Subject: Redirect debug output to stderr --- gtk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk.c') 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 -- cgit v1.2.3-70-g09d2