Commit 24a42f5b authored by winckel's avatar winckel

Fixed some warnings for RTAI build.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4575 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent b195964f
......@@ -76,7 +76,9 @@ int log_list_head = 0;
int log_shutdown;
#endif
#ifndef RTAI
static int gfd;
#endif
static char *log_level_highlight_start[] = {LOG_RED, LOG_RED, LOG_RED, LOG_RED, LOG_ORANGE, LOG_BLUE, "", ""}; /*!< \brief Optional start-format strings for highlighting */
static char *log_level_highlight_end[] = {LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET,LOG_RESET, "",""}; /*!< \brief Optional end-format strings for highlighting */
......@@ -88,7 +90,9 @@ static log_instance_type_t log_instance_type;
int logInit (void)
{
#ifdef USER_MODE
#ifndef RTAI
int i;
#endif
g_log = calloc(1, sizeof(log_t));
#else
......@@ -637,7 +641,7 @@ void logRecord_mt(const char *file, const char *func, int line, int comp,
rtf_put (FIFO_PRINTF_NO, c->log_buffer, len);
}
#else
fprintf(stdout, "%s", c->log_buffer);
fwrite(c->log_buffer, len, 1, stdout);
#endif
#ifndef RTAI
......@@ -926,10 +930,11 @@ int is_newline( char *str, int size)
void logClean (void)
{
int i;
#ifdef RTAI
rtf_destroy (FIFO_PRINTF_NO);
#else
int i;
if (g_log->syslog) {
closelog();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment