summaryrefslogtreecommitdiff
path: root/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'user.c')
-rw-r--r--user.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/user.c b/user.c
index 804223a..9bfdf96 100644
--- a/user.c
+++ b/user.c
@@ -167,8 +167,13 @@ static size_t show_callback(void *contents, size_t size, size_t nmemb
free(*userptr);
*userptr = 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;