]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: pcm: Fix yet more compile warning at replacement with kstrtoul()
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Sep 2024 06:22:16 +0000 (08:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Sep 2024 08:17:42 +0000 (10:17 +0200)
The previous fix brought yet another compile warning at pr_debug()
call with the changed size.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/20240902132904.5ee173f3@canb.auug.org.au
Fixes: 43b42ed438bf ("ALSA: pcm: Fix the previous conversion to kstrtoul()")
Tested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://patch.msgid.link/20240902062217.9777-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_memory.c

index 5001181208df4b6f2131040b3780c6a9c3273574..ea3941f8666b2dbc8c555955cb9e6f6f4cae32b7 100644 (file)
@@ -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);