Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: pcm: Make snd_pcm_lib_malloc_pages() debug message say "allocate"

snd_pcm_lib_malloc_pages() is commonly used for allocating buffers during
the hw_params callback, whereas preallocating buffers goes through
preallocate_pcm_pages().

Having the same terminology in the failure debug messages in both
misleads developers.

Change the debug message in snd_pcm_lib_malloc_pages() to use the
term "allocate" to match its intended use.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20250421085244.377228-1-wenst@chromium.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Chen-Yu Tsai and committed by
Takashi Iwai
05100d16 813e311e

+1 -1
+1 -1
sound/core/pcm_memory.c
··· 458 458 substream->stream, 459 459 size, dmab) < 0) { 460 460 kfree(dmab); 461 - pr_debug("ALSA pcmC%dD%d%c,%d:%s: cannot preallocate for size %zu\n", 461 + pr_debug("ALSA pcmC%dD%d%c,%d:%s: cannot allocate for size %zu\n", 462 462 substream->pcm->card->number, substream->pcm->device, 463 463 substream->stream ? 'c' : 'p', substream->number, 464 464 substream->pcm->name, size);