summaryrefslogtreecommitdiff
path: root/ticket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.c')
-rw-r--r--ticket.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ticket.c b/ticket.c
index 75a00e5..1c96e4c 100644
--- a/ticket.c
+++ b/ticket.c
@@ -80,8 +80,13 @@ static size_t search_callback(void *contents, size_t size, size_t nmemb
free(*listptr);
*listptr = NULL;
#ifdef DEBUG
- fprintf(stderr, "%s response status: %s\n", __func__, line);
-#endif
+#ifdef ANDROID
+ __android_log_print(ANDROID_LOG_INFO, "librtclient"
+ , "%s response status:\n%s", __func__, error);
+#else
+ printf("%s response status:\n%s\n", __func__, line);
+#endif // ANDROID
+#endif // DEBUG
}
return realsize;