mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:56:29 +01:00
alsactl: fix the syslog message - add : delimiter after function:line
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
1dd37fddd8
commit
225a9afbc3
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue