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

GitHub issues - opened github at alsa-project.org
Wed Dec 18 11:09:09 CET 2019


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


More information about the Alsa-devel mailing list