* [PATCH] HSI: cmt_speech: fix wrong printf format
@ 2026-03-21 3:42 Rosen Penev
2026-03-25 0:54 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-03-21 3:42 UTC (permalink / raw)
To: linux-kernel; +Cc: Sebastian Reichel
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] HSI: cmt_speech: fix wrong printf format
2026-03-21 3:42 [PATCH] HSI: cmt_speech: fix wrong printf format Rosen Penev
@ 2026-03-25 0:54 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2026-03-25 0:54 UTC (permalink / raw)
To: linux-kernel, Rosen Penev; +Cc: Sebastian Reichel
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-25 0:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-21 3:42 [PATCH] HSI: cmt_speech: fix wrong printf format Rosen Penev
2026-03-25 0:54 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®