[babl] babl: replace a fprintf (stderr, ...) with babl_log().
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: replace a fprintf (stderr, ...) with babl_log().
- Date: Sat, 16 Sep 2017 10:00:12 +0000 (UTC)
commit 4b82de7d4fdcfa2852bae4eff1a644fb97463378
Author: Jehan <jehan girinstud io>
Date: Tue Jul 4 16:47:52 2017 +0200
babl: replace a fprintf (stderr, ...) with babl_log().
It will make it visible in the logcat, for instance in Android Studio.
As a general rule, we should use babl_log() for anything which we
consider as "logs", unless we want to direct them to a given output for
sure (for instance in the case of CLI tools where we want the output to
be on standard I/O in terminal, fprintf() still is the best choice).
babl/babl-extension.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/babl/babl-extension.c b/babl/babl-extension.c
index 8edb60d..8e85be5 100644
--- a/babl/babl-extension.c
+++ b/babl/babl-extension.c
@@ -348,11 +348,10 @@ babl_extension_load_dir_list (const char *dir_list)
babl_free (path);
if (babl_db_count (db) <= 1)
{
- fprintf (stderr,
-"WARNING: the babl installation seems broken, no extensions found in queried\n"
-"BABL_PATH (%s) this means no SIMD/instructions/special case fast paths and\n"
-"only slow reference conversions are available, applications might still\n"
-"run but software relying on babl for conversions will be slow\n", dir_list);
+ babl_log ("WARNING: the babl installation seems broken, no extensions found in queried\n"
+ "BABL_PATH (%s) this means no SIMD/instructions/special case fast paths and\n"
+ "only slow reference conversions are available, applications might still\n"
+ "run but software relying on babl for conversions will be slow\n", dir_list);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]