[lib] Write messages to stderr instead of stdout

This commit is contained in:
Matteo Cypriani 2011-03-24 09:00:57 +01:00
parent 6c4af9020f
commit c87c2e2e93
1 changed files with 3 additions and 3 deletions

View File

@ -181,8 +181,8 @@ owl_timestamp owl_time_elapsed(const owl_timestamp d1,
elapsed.tv_sec = abs(d1.tv_sec - d2.tv_sec) ;
elapsed.tv_nsec = abs(d1.tv_nsec - d2.tv_nsec) ;
#ifdef DEBUG
printf("time_elapsed(): %"PRIu64"ms\n",
owl_timestamp_to_ms(elapsed)) ;
fprintf(stderr, "time_elapsed(): %"PRIu64"ms\n",
owl_timestamp_to_ms(elapsed)) ;
#endif
return elapsed ;
}
@ -425,7 +425,7 @@ void owl_sigint_handler(int num)
run = FALSE ;
#ifdef DEBUG
printf("\nSignal received: end.\n");
fprintf(stderr, "\nSignal received: end.\n");
#endif // DEBUG
fflush(NULL) ;
}