Skip to contentSkip to conversation

ALSA: pcm: Fix yet more compile warning at replacement with kstrtoul()

PATCH In review Takashi Iwai 2 participants 2 messages Sep 2, 2024 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: pcm: Fix yet more compile warning at replacement with kstrtoul()

The previous fix brought yet another compile warning at pr_debug() call with the changed size.

Fixes 43b42ed438bf ("ALSA: pcm: Fix the previous conversion to kstrtoul()")
---
 sound/core/pcm_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/pcm_memory.c +1 -1
index 5001181208df..ea3941f8666b 100644
@@ -212,7 +212,7 @@ static void snd_pcm_lib_preallocate_proc_write(struct snd_info_entry *entry,
 					   substream->stream,
 					   size, &new_dmab) < 0) {
 				buffer->error = -ENOMEM;
-				pr_debug("ALSA pcmC%dD%d%c,%d:%s: cannot preallocate for size %zu\n",
+				pr_debug("ALSA pcmC%dD%d%c,%d:%s: cannot preallocate for size %lu\n",
 					 substream->pcm->card->number, substream->pcm->device,
 					 substream->stream ? 'c' : 'p', substream->number,
 					 substream->pcm->name, size);
Signature · 1 line
2.43.0
Tested-by on v1 1/1
#1 lore raw

Hi Takashi,

Quoted 8 lines · On Mon, 2 Sep 2024 08:22:16 +0200 Takashi Iwai <[email protected]> wrote:

The previous fix brought yet another compile warning at pr_debug() call with the changed size.

Fixes 43b42ed438bf ("ALSA: pcm: Fix the previous conversion to kstrtoul()")
Signature · 2 lines
Cheers,
Stephen Rothwell