native: Use stderr for logging

Since we will hopefully one day use stdout as a CTK display,
use stderr instead for log output, which can be redirected to a file.
This commit is contained in:
François Revol 2012-11-12 22:24:52 +01:00
parent ba541fd510
commit 877b059bc7

View File

@ -271,12 +271,12 @@ main(int argc, char **argv)
void void
log_message(char *m1, char *m2) log_message(char *m1, char *m2)
{ {
printf("%s%s\n", m1, m2); fprintf(stderr, "%s%s\n", m1, m2);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
void void
uip_log(char *m) uip_log(char *m)
{ {
printf("%s\n", m); fprintf(stderr, "%s\n", m);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/