alsactl: use the right priority for syslog messages

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-05-14 19:41:40 +02:00
parent b68e854d28
commit 0adca4cac7

View file

@ -111,7 +111,7 @@ static void syslog_(int prio, const char *fcn, long line,
buf[sizeof(buf)-1] = '\0'; buf[sizeof(buf)-1] = '\0';
vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap); vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap);
buf[sizeof(buf)-1] = '\0'; buf[sizeof(buf)-1] = '\0';
syslog(LOG_INFO, "%s", buf); syslog(prio, "%s", buf);
} }
void info_(const char *fcn, long line, const char *fmt, ...) void info_(const char *fcn, long line, const char *fmt, ...)