]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: fix the TPLG_DEBUG compilation
authorJaroslav Kysela <perex@perex.cz>
Sun, 29 Dec 2019 19:05:14 +0000 (20:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Jan 2020 22:38:08 +0000 (23:38 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/topology/channel.c
src/topology/data.c
src/topology/pcm.c

index 110775a8053dc09541c155f906171c7062e320a5..390c3f164e97a8bdebb296d326b42e91044202a7 100644 (file)
@@ -129,7 +129,7 @@ int tplg_parse_channel(snd_tplg_t *tplg, snd_config_t *cfg,
                else if (strcmp(id, "shift") == 0)
                        channel->shift = value;
 
-               tplg_dbg("\t\t%s = %s\n", id, value);
+               tplg_dbg("\t\t%s = %d\n", id, value);
        }
 
        tplg->channel_idx++;
index 1ddd3c509e6479b436ec9beac5484fbcef6b63cf..7b4bdccde6024b16177a6802db0565f52a05cef2 100644 (file)
@@ -230,9 +230,11 @@ err:
        return ret;
 }
 
-static void dump_priv_data(struct tplg_elem *elem)
+static void dump_priv_data(struct tplg_elem *elem ATTRIBUTE_UNUSED)
 {
+#ifdef TPLG_DEBUG
        struct snd_soc_tplg_private *priv = elem->data;
+       unsigned char *p = (unsigned char *)priv->data;
        unsigned int i;
 
        tplg_dbg(" elem size = %d, priv data size = %d\n",
@@ -246,6 +248,7 @@ static void dump_priv_data(struct tplg_elem *elem)
        }
 
        tplg_dbg("\n\n");
+#endif
 }
 
 static inline int check_nibble(unsigned char c)
index bc3070816867e82cf0b5460e10605444aee1c360..8e5afbe6ea72536816563029cc0f5f6c88e71cae 100644 (file)
@@ -881,7 +881,7 @@ int tplg_parse_pcm(snd_tplg_t *tplg, snd_config_t *cfg,
 
                        pcm->compress = ival;
 
-                       tplg_dbg("\t%s: %s\n", id, val);
+                       tplg_dbg("\t%s: %d\n", id, ival);
                        continue;
                }