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 /data.c | |
parent | f621530188b3f87b156a92dd8315b7e87a2eba01 (diff) | |
download | limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar.zst limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.zip |
Redirect debug output to stderr
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ void data_add_roster_item(const char* jid, const char* subscription, } else if (strcmp(subscription, "both") == 0) { item->sub = SUB_BOTH; } else { - printf("Invalid subscription '%s'!\n", subscription); + fprintf(stderr, "Invalid subscription '%s'!\n", subscription); return; } item->chat = chat; @@ -78,7 +78,7 @@ void data_add_incoming_message(const char* sender_jid, const char* content) { } } if (chat == NULL) { - printf("Could not find chat for message from '%s'!\n", sender_jid); + fprintf(stderr, "Could not find chat for message from '%s'!\n", sender_jid); return; } |