topology: fix the TPLG_DEBUG compilation

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-12-29 20:05:14 +01:00
parent 2947d83c13
commit 1482d1f254
3 changed files with 6 additions and 3 deletions

View file

@ -129,7 +129,7 @@ int tplg_parse_channel(snd_tplg_t *tplg, snd_config_t *cfg,
else if (strcmp(id, "shift") == 0) else if (strcmp(id, "shift") == 0)
channel->shift = value; channel->shift = value;
tplg_dbg("\t\t%s = %s\n", id, value); tplg_dbg("\t\t%s = %d\n", id, value);
} }
tplg->channel_idx++; tplg->channel_idx++;

View file

@ -230,9 +230,11 @@ err:
return ret; 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; struct snd_soc_tplg_private *priv = elem->data;
unsigned char *p = (unsigned char *)priv->data;
unsigned int i; unsigned int i;
tplg_dbg(" elem size = %d, priv data size = %d\n", 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"); tplg_dbg("\n\n");
#endif
} }
static inline int check_nibble(unsigned char c) static inline int check_nibble(unsigned char c)

View file

@ -881,7 +881,7 @@ int tplg_parse_pcm(snd_tplg_t *tplg, snd_config_t *cfg,
pcm->compress = ival; pcm->compress = ival;
tplg_dbg("\t%s: %s\n", id, val); tplg_dbg("\t%s: %d\n", id, ival);
continue; continue;
} }