debug messages are sent in stderr stream (Thanks to Spock)

This commit is contained in:
Romuald Conty 2012-05-02 01:46:44 +00:00
parent 8549bc1e4c
commit 4990f57df8

View file

@ -60,8 +60,8 @@ log_put (char *category, char *priority, char *format, ...)
{
va_list va;
va_start (va, format);
printf ("%s\t%s\t", priority, category);
vprintf (format, va);
printf ("\n");
fprintf (stderr, "%s\t%s\t", priority, category);
vfprintf (stderr, format, va);
fprintf (stderr, "\n");
va_end (va);
}