Skip to content

Commit 43c1c02

Browse files
committed
Log to stderr instead of stdout
"Non-output" logging should go to stderr in general. Plugins printing to stdout breaks breaks UNIX-style utilities that use it for formatted output.
1 parent 94d6c70 commit 43c1c02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/dsp/src/gkick_log.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ gkick_log_msg(const char *message, ...)
2828
{
2929
va_list args;
3030
va_start (args, message);
31-
vprintf (message, args);
31+
vfprintf (stderr, message, args);
3232
va_end (args);
3333
printf("\n");
3434
}
@@ -39,7 +39,7 @@ gkick_msg_info(const char *msg, ...)
3939
va_list args;
4040
printf("Info: ");
4141
va_start (args, msg);
42-
vprintf (msg, args);
42+
vfprintf (stderr, msg, args);
4343
va_end (args);
4444
printf("\n");
4545
}
@@ -51,7 +51,7 @@ gkick_msg_error(const char *msg, ...)
5151
va_list args;
5252
printf("Error: ");
5353
va_start (args, msg);
54-
vprintf (msg, args);
54+
vfprintf (stderr, msg, args);
5555
va_end (args);
5656
printf("\n");
5757
}

0 commit comments

Comments
 (0)