ALSA: pcm: Add debug print on memory allocation failure
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 18 Mar 2021 16:06:16 +0000 (17:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Mar 2021 15:54:47 +0000 (16:54 +0100)
commitdc85fc9d05d23591ddfde400c817413765611ec7
tree24759654fadf0fca299adfdcdd33f0aab8e27320
parent8518c6486c2b8355e0781f8ee53c3c3f8427d96c
ALSA: pcm: Add debug print on memory allocation failure

Add debug prints after calls of do_alloc_pages. One simplification would
be to move print into do_alloc_pages, however it would cause spam in
logs, as preallocate_pcm_pages loops over do_alloc_pages trying lower
values in case of failures.

Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20210318160618.2504068-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_memory.c