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

@ -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)