Ignore:
Timestamp:
Jul 3, 2020, 7:19:17 PM (4 years ago)
Author:
coas-nagasima
Message:

ASP3, TINET, mbed を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/syssvc/tSysLog.c

    r321 r429  
    11/*
    2  *  TOPPERS/ASP Kernel
    3  *      Toyohashi Open Platform for Embedded Real-Time Systems/
    4  *      Advanced Standard Profile Kernel
     2 *  TOPPERS Software
     3 *      Toyohashi Open Platform for Embedded Real-Time Systems
    54 *
    65 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    76 *                              Toyohashi Univ. of Technology, JAPAN
    8  *  Copyright (C) 2005-2016 by Embedded and Real-Time Systems Laboratory
     7 *  Copyright (C) 2005-2018 by Embedded and Real-Time Systems Laboratory
    98 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    109 *
     
    5049#include <t_syslog.h>
    5150#include <log_output.h>
     51
     52/*
     53 *  トレースログに関する設定
     54 */
     55#ifdef TOPPERS_ENABLE_TRACE
     56#include "arch/tracelog/trace_log.h"
     57#endif /* TOPPERS_ENABLE_TRACE */
     58
     59/*
     60 *  ターゲット依存情報の定義
     61 */
    5262#include "target_syssvc.h"
    5363
     
    126136        if ((VAR_lowMask & LOG_MASK(priority)) != 0U) {
    127137                syslog_print(p_syslog, low_putchar);
    128                 low_putchar('\n');
    129138        }
    130139
     
    212221
    213222        while ((rercd = eSysLog_read(&logbuf)) >= 0) {
    214                 if (rercd > 0) {
     223                if (((uint_t) rercd) > 0U) {
    215224                        syslog_lostmsg((uint_t) rercd, low_putchar);
    216225                }
    217                 if (logbuf.logtype >= LOG_TYPE_COMMENT) {
    218                         syslog_print(&logbuf, low_putchar);
    219                         low_putchar('\n');
    220                 }
    221         }
    222 
    223         SIL_UNL_INT();
    224         return(E_OK);
    225 }
     226                syslog_print(&logbuf, low_putchar);
     227        }
     228
     229        SIL_UNL_INT();
     230        return(E_OK);
     231}
Note: See TracChangeset for help on using the changeset viewer.