diff options
author | xengineering <me@xengineering.eu> | 2022-10-04 10:13:36 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-10-04 10:13:36 +0200 |
commit | ab499add5ac6bc8c61b4fe32838a2a33f81e4867 (patch) | |
tree | 5624fe9054a69284f1fd4460db86df0e93e4a4f3 /gtk.c | |
parent | f621530188b3f87b156a92dd8315b7e87a2eba01 (diff) | |
download | limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar.zst limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.zip |
Redirect debug output to stderr
Diffstat (limited to 'gtk.c')
-rw-r--r-- | gtk.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |