]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: use the right priority for syslog messages
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2020 17:41:40 +0000 (19:41 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2020 17:41:40 +0000 (19:41 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/utils.c

index fb59e0e5c8f3a0f2fa1615c09dc12180895193d6..9d4166febc7a6e26524713f45177c4d50f9174c6 100644 (file)
@@ -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, ...)