diff options
author | Jehan <jehan@girinstud.io> | 2017-07-05 02:15:27 +0200 |
---|---|---|
committer | Jehan <jehan@girinstud.io> | 2017-09-16 11:56:05 +0200 |
commit | 7cedcce5e72fa48f95f64729f2ca7642adc83368 (patch) | |
tree | 1af8531f9479227c05e0a47e31b1d9ec8bbe232f /babl/babl-internal.h | |
parent | 4b82de7d4fdcfa2852bae4eff1a644fb97463378 (diff) |
babl: improve log output on Android.
No need to log end of lines. This is not like a printf where we are
trying to pretty-print.
Diffstat (limited to 'babl/babl-internal.h')
-rw-r--r-- | babl/babl-internal.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/babl/babl-internal.h b/babl/babl-internal.h index 24ad347..efa593c 100644 --- a/babl/babl-internal.h +++ b/babl/babl-internal.h @@ -62,7 +62,6 @@ #include <android/log.h> #endif - Babl * babl_conversion_find (const void *source, const void *destination); double babl_conversion_error (BablConversion *conversion); @@ -137,7 +136,7 @@ real_babl_log_va(const char *file, #ifdef __ANDROID_API__ __android_log_print (ANDROID_LOG_DEBUG, "BABL", - "%s:%i %s()\n\t", file, line, function); + "%s:%i %s()", file, line, function); #else fprintf (stdout, "%s:%i %s()\n\t", file, line, function); #endif @@ -146,10 +145,8 @@ real_babl_log_va(const char *file, #ifdef __ANDROID_API__ __android_log_vprint (ANDROID_LOG_DEBUG, "BABL", fmt, varg); - __android_log_write (ANDROID_LOG_DEBUG, "BABL", "\n"); #else vfprintf (stdout, fmt, varg); - fprintf (stdout, "\n"); fflush (NULL); #endif |