summaryrefslogtreecommitdiff
path: root/data.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 /data.c
parentf621530188b3f87b156a92dd8315b7e87a2eba01 (diff)
downloadlimox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar
limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.tar.zst
limox-ab499add5ac6bc8c61b4fe32838a2a33f81e4867.zip
Redirect debug output to stderr
Diffstat (limited to 'data.c')
-rw-r--r--data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/data.c b/data.c
index 3780fd0..f8be1ff 100644
--- a/data.c
+++ b/data.c
@@ -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;
}