audiod: Fix writer setup info message.
authorAndre Noll <maan@systemlinux.org>
Sat, 6 Aug 2011 19:39:08 +0000 (21:39 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 13 Aug 2011 11:00:32 +0000 (13:00 +0200)
In the non-default case the wrong variable was used as the array index.

audiod.c

index 74aa386..5af79b0 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -791,7 +791,7 @@ static int parse_writer_args(void)
                        a->writer_conf = para_realloc(a->writer_conf, (nw + 1) * sizeof(void *));
                        a->writer_nums[nw] = writer_num;
                        a->writer_conf[nw] = wconf;
-                       PARA_INFO_LOG("%s writer #%d: %s\n", audio_formats[writer_num],
+                       PARA_INFO_LOG("%s writer #%d: %s\n", audio_formats[j],
                                nw, writer_names[writer_num]);
                        a->num_writers++;
                }