mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-24 02:26:15 +00:00
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
@ -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…
Reference in New Issue
Block a user