From 279fe642fefe11ea606ef0124782c2d59477f5e1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 11 Aug 2017 12:18:26 +0200 Subject: [PATCH] audiod: Add log message for receiver errors. If the receiver could not be opened, we return negative from open_receiver() and audiod prints an error message which contains the error string. However, this message is confusing because it does not say that the error came from open_receiver(), much less which receiver caused the error. The new log message should clarify this. --- audiod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audiod.c b/audiod.c index defd673d..05a2cda3 100644 --- a/audiod.c +++ b/audiod.c @@ -666,6 +666,7 @@ static int open_receiver(int format) EMBRACE(.name = name, .context = rn)); ret = r->open(rn); if (ret < 0) { + PARA_ERROR_LOG("could not open %s receiver\n", name); btr_remove_node(&rn->btrn); free(rn); return ret; -- 2.39.5