From: Jaroslav Kysela Date: Thu, 14 May 2020 17:41:40 +0000 (+0200) Subject: alsactl: use the right priority for syslog messages X-Git-Tag: v1.2.3~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0adca4cac7f02ec07cf7b2042110125eb1052b60;p=alsa-utils.git alsactl: use the right priority for syslog messages Signed-off-by: Jaroslav Kysela --- diff --git a/alsactl/utils.c b/alsactl/utils.c index fb59e0e..9d4166f 100644 --- a/alsactl/utils.c +++ b/alsactl/utils.c @@ -111,7 +111,7 @@ static void syslog_(int prio, const char *fcn, long line, buf[sizeof(buf)-1] = '\0'; vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap); buf[sizeof(buf)-1] = '\0'; - syslog(LOG_INFO, "%s", buf); + syslog(prio, "%s", buf); } void info_(const char *fcn, long line, const char *fmt, ...)