[PATCH] HSI: cmt_speech: fix wrong printf format

Rosen Penev posted 1 patch 1 week, 6 days ago
drivers/hsi/clients/cmt_speech.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] HSI: cmt_speech: fix wrong printf format
Posted by Rosen Penev 1 week, 6 days ago
sizeof returns size_t. Use the zu specifier for it. Fixes on x86-64:

error: format ‘%u’ expects argument of type ‘unsigned int’, but
argument 5 has type ‘long unsigned int’ [-Werror=format=]

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 drivers/hsi/clients/cmt_speech.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c
index d5aa87833768..7226677ebde7 100644
--- a/drivers/hsi/clients/cmt_speech.c
+++ b/drivers/hsi/clients/cmt_speech.c
@@ -892,7 +892,7 @@ static void cs_hsi_data_enable(struct cs_hsi_iface *hi,
 
 	data_start = L1_CACHE_ALIGN(sizeof(*hi->mmap_cfg));
 	dev_dbg(&hi->cl->device,
-			"setting data start at %u, cfg block %u, align %u\n",
+			"setting data start at %u, cfg block %zu, align %u\n",
 			data_start, sizeof(*hi->mmap_cfg), L1_CACHE_BYTES);
 
 	for (i = 0; i < hi->mmap_cfg->rx_bufs; i++) {
-- 
2.53.0

Re: [PATCH] HSI: cmt_speech: fix wrong printf format
Posted by Sebastian Reichel 1 week, 2 days ago
On Fri, 20 Mar 2026 20:42:27 -0700, Rosen Penev wrote:
> sizeof returns size_t. Use the zu specifier for it. Fixes on x86-64:
> 
> error: format ‘%u’ expects argument of type ‘unsigned int’, but
> argument 5 has type ‘long unsigned int’ [-Werror=format=]
> 
> 

Applied, thanks!

[1/1] HSI: cmt_speech: fix wrong printf format
      commit: 59b026da003831babb77d5155e82342bce226079

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>