From: Andre Noll Date: Fri, 11 Aug 2017 10:18:26 +0000 (+0200) Subject: audiod: Add log message for receiver errors. X-Git-Tag: v0.6.1~17 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=279fe642fefe11ea606ef0124782c2d59477f5e1;hp=a61e862450dc1e74394bf5bbf7002d9947f98d31 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. --- 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;