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:
parent
ba541fd510
commit
877b059bc7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue