Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rt1320: fix size_t format string

Printing a size_t portably requires the use of %z instead of %l:

sound/soc/codecs/rt1320-sdw.c:1494:30: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
1494 | dev_dbg(dev, "%s, rae_fw size=0x%lx\n", __func__, rae_fw->size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: 22937af75abb ("ASoC: rt1320: support RAE parameters loading")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251223215322.694265-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Arnd Bergmann and committed by
Mark Brown
284853af 836ecc74

+1 -1
+1 -1
sound/soc/codecs/rt1320-sdw.c
··· 1489 1489 return -ETIMEDOUT; 1490 1490 } 1491 1491 1492 - dev_dbg(dev, "%s, rae_fw size=0x%lx\n", __func__, rae_fw->size); 1492 + dev_dbg(dev, "%s, rae_fw size=0x%zx\n", __func__, rae_fw->size); 1493 1493 regcache_cache_bypass(rt1320->regmap, true); 1494 1494 for (fw_offset = 0; fw_offset < rae_fw->size;) { 1495 1495