alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: snd_lib_log_set_handler
Date: Sun, 14 Dec 2025 22:41:53 +0100 (CET)	[thread overview]
Message-ID: <188132e91b179c00-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <188132e91a6c4700-webhooks-bot@alsa-project.org>

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

           reply	other threads:[~2025-12-14 21:44 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <188132e91a6c4700-webhooks-bot@alsa-project.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=188132e91b179c00-webhooks-bot@alsa-project.org \
    --to=github@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).