Skip to contentSkip to conversation

Undecalared Variable "p" when compile alsa-lib with TPLG_DEBUG defined

alsa-devel GitHub issues - opened 1 participant 1 message Dec 18, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-lib issue #18 was opened from aiChaoSONG:

Undecalared Variable "p" when compile alsa-lib with TPLG_DEBUG defined, the pointer 'p' in line 152 of src/topology/data.c seem not declared. see code below.

```
static void dump_priv_data(struct tplg_elem *elem)
{
	struct snd_soc_tplg_private *priv = elem->data;
	unsigned int i, j = 0;

	tplg_dbg(" elem size = %d, priv data size = %d\n",
		elem->size, priv->size);

	for (i = 0; i < priv->size; i++) {
		if (j++ % 8 == 0)
			tplg_dbg("\n");

		*******tplg_dbg(" 0x%x", *p++);*******
	}

	tplg_dbg("\n\n");
}
```

Issue URL : https://github.com/alsa-project/alsa-lib/issues/18
Repository URL: https://github.com/alsa-project/alsa-lib
_______________________________________________
Alsa-devel mailing list [email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel