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 --- data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data.c') 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; } -- cgit v1.2.3-70-g09d2