Commit 1785e31f authored by winckel's avatar winckel
Browse files

Fixed some warnings.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4523 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent df177680
......@@ -482,10 +482,14 @@ void logRecord_thread_safe(const char *file, const char *func,
syslog(g_log->level, "%s", log_buffer);
}
if (g_log->filelog) {
write(gfd, log_buffer, total_len);
if (write(gfd, log_buffer, total_len) < total_len) {
// TODO assert ?
}
}
if ((g_log->log_component[comp].filelog) && (level == LOG_FILE)) {
write(g_log->log_component[comp].fd, log_buffer, total_len);
if (write(g_log->log_component[comp].fd, log_buffer, total_len) < total_len) {
// TODO assert ?
}
}
#endif
......@@ -637,10 +641,14 @@ void logRecord_mt(const char *file, const char *func, int line, int comp,
syslog(g_log->level, "%s", c->log_buffer);
}
if (g_log->filelog) {
write(gfd, c->log_buffer, len);
if (write(gfd, c->log_buffer, len) < len){
// TODO assert ?
}
}
if ((g_log->log_component[comp].filelog) && (level == LOG_FILE)) {
write(g_log->log_component[comp].fd, c->log_buffer, len);
if (write(g_log->log_component[comp].fd, c->log_buffer, len) < len) {
// TODO assert ?
}
}
#endif
......
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