Re: [PATCH] ASoC: soc-topology: fix __le32 conversion in printed values
From: Ben Dooks
Date: Wed Mar 11 2026 - 13:22:37 EST
On 11/03/2026 17:11, Mark Brown wrote:
On Tue, Mar 10, 2026 at 09:49:48AM +0000, Ben Dooks wrote:
@@ -225,7 +225,10 @@ static inline void soc_control_err(struct soc_tplg *tplg,
{
dev_err(tplg->dev,
"ASoC: no complete control IO handler for %s type (g,p,i) %d:%d:%d at 0x%lx\n",
- name, hdr->ops.get, hdr->ops.put, hdr->ops.info,
+ name,
+ le32_to_cpu(hdr->ops.get),
+ le32_to_cpu(hdr->ops.put),
+ le32_to_cpu(hdr->ops.info),
Shouldn't we also change the prints to %u given that le32_to_cpu() works
with unsigned data (IIRC)?
Possibly. But given the data was already marked __le32 it was already
unsigned.
Do we want to go through changing these before committing this or
delay it to another patch?
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
https://www.codethink.co.uk/privacy.html