[babl] babl: improve log output on Android.



commit 7cedcce5e72fa48f95f64729f2ca7642adc83368
Author: Jehan <jehan girinstud io>
Date:   Wed Jul 5 02:15:27 2017 +0200

    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.

 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]