All of lore.kernel.org
 help / color / mirror / Atom feed
* snd_lib_log_set_handler
       [not found] <188132e91a6c4700-webhooks-bot@alsa-project.org>
@ 2025-12-14 21:41 ` GitHub issues - opened
  0 siblings, 0 replies; only message in thread
From: GitHub issues - opened @ 2025-12-14 21:41 UTC (permalink / raw)
  To: alsa-devel

alsa-project/alsa-utils issue #314 was opened from sidrat:

Function snd_lib_log_filter is still showing up after it was removed from alsa-lib,
can some one make a patch to replace snd_lib_log_filter with snd_lib_error_set_handler, thank you

alsactl/alsactl.c 
alsactl.c: In function ‘main’:
alsactl.c:465:9: error: implicit declaration of function ‘snd_lib_log_set_handler’; did you mean ‘snd_lib_error_set_handler’? [-Wimplicit-function-declaration]
  465 |         snd_lib_log_set_handler(log_handler);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         snd_lib_error_set_handler
utils.c: In function ‘log_handler’:
utils.c:202:14: error: implicit declaration of function ‘snd_lib_log_filter’ [-Wimplicit-function-declaration]
  202 |         if (!snd_lib_log_filter(prio, interface, NULL))
      |              ^~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:638: alsactl-alsactl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
utils.c:205:17: error: implicit declaration of function ‘snd_lib_log_priority’ [-Wimplicit-function-declaration]
  205 |         text1 = snd_lib_log_priority(prio);
      |                 ^~~~~~~~~~~~~~~~~~~~
utils.c:205:15: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  205 |         text1 = snd_lib_log_priority(prio);
      |               ^
utils.c:206:17: error: implicit declaration of function ‘snd_lib_log_interface’ [-Wimplicit-function-declaration]
  206 |         text2 = snd_lib_log_interface(interface);
      |                 ^~~~~~~~~~~~~~~~~~~~~
utils.c:206:15: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  206 |         text2 = snd_lib_log_interface(interface);

Issue URL     : https://github.com/alsa-project/alsa-utils/issues/314
Repository URL: https://github.com/alsa-project/alsa-utils

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-14 21:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <188132e91a6c4700-webhooks-bot@alsa-project.org>
2025-12-14 21:41 ` snd_lib_log_set_handler GitHub issues - opened

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.