diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-09-07 16:36:56 +0300 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-31 12:20:59 +0100 |
commit | c35ba8a725405f7712618871c56a3b7fb3933e2a (patch) | |
tree | 5150376f41c14f847cd0a09c31778cdf4af06ffc /src/pq_codec.c | |
parent | f8d91a07b45a618fd25c9d6edcf28218642044c9 (diff) |
libosmogapk: use Osmocom logging framework
Since this change, the libosmogapk uses the Osmocom logging
framework. By default, logging is disabled and could be enabled
by the external applications calling the osmo_gapk_log_init()
with a desired log target as an argument.
Diffstat (limited to 'src/pq_codec.c')
-rw-r--r-- | src/pq_codec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pq_codec.c b/src/pq_codec.c index 37fa1c9..f5da628 100644 --- a/src/pq_codec.c +++ b/src/pq_codec.c @@ -20,6 +20,7 @@ #include <errno.h> #include <stdint.h> +#include <osmocom/gapk/logging.h> #include <osmocom/gapk/codecs.h> #include <osmocom/gapk/formats.h> #include <osmocom/gapk/procqueue.h> @@ -71,7 +72,7 @@ osmo_gapk_pq_queue_codec(struct osmo_gapk_pq *pq, const struct osmo_gapk_codec_d item->exit = codec->codec_exit; - fprintf(stderr, "[+] PQ: Adding Codec %s, %s format %s\n", codec->name, + LOGPGAPK(LOGL_DEBUG, "PQ: Adding codec %s, %s format %s\n", codec->name, enc_dec_n ? "encoding to" : "decoding from", fmt->name); if (!item->proc) |