diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-08-19 12:15:15 +0600 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-11-19 17:35:07 +0700 |
commit | 3641fe61238aabaa84ecbf14ca8eefe18acd5b18 (patch) | |
tree | 368ca4b52184affc5ac16fab4de20aa593f0f849 /src/host/trxcon/trx_if.c | |
parent | f979d44a72115050e3be95a7ce9bf29bffe964dc (diff) |
host/trxcon: use LOGP instead of fprintf
There is no (performance) reason to use fprintf instead of LOGP.
Second one provides more useful information, such as a file name
and a line number.
Change-Id: I86dda5b3d746c7802442e4226578a06c04941721
Diffstat (limited to 'src/host/trxcon/trx_if.c')
-rw-r--r-- | src/host/trxcon/trx_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c index 5820d707..368c4742 100644 --- a/src/host/trxcon/trx_if.c +++ b/src/host/trxcon/trx_if.c @@ -636,7 +636,7 @@ int trx_if_open(struct trx_instance **trx, const char *host, uint16_t port) /* Try to allocate memory */ trx_new = talloc_zero(tall_trx_ctx, struct trx_instance); if (!trx_new) { - fprintf(stderr, "Failed to allocate memory\n"); + LOGP(DTRX, LOGL_ERROR, "Failed to allocate memory\n"); return -ENOMEM; } |