alsactl: fix the syslog message - add : delimiter after function:line

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-20 08:46:53 +02:00
parent 1dd37fddd8
commit 225a9afbc3

View file

@ -107,7 +107,7 @@ static void syslog_(int prio, const char *fcn, long line,
{ {
char buf[1024]; char buf[1024];
snprintf(buf, sizeof(buf), "%s: %s:%ld", command, fcn, line); snprintf(buf, sizeof(buf), "%s: %s:%ld: ", command, fcn, 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';