Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/syssvc/tSysLog.c
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/syssvc/tSysLog.c
r321 r429 1 1 /* 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 5 4 * 6 5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 7 6 * Toyohashi Univ. of Technology, JAPAN 8 * Copyright (C) 2005-201 6by Embedded and Real-Time Systems Laboratory7 * Copyright (C) 2005-2018 by Embedded and Real-Time Systems Laboratory 9 8 * Graduate School of Information Science, Nagoya Univ., JAPAN 10 9 * … … 50 49 #include <t_syslog.h> 51 50 #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 */ 52 62 #include "target_syssvc.h" 53 63 … … 126 136 if ((VAR_lowMask & LOG_MASK(priority)) != 0U) { 127 137 syslog_print(p_syslog, low_putchar); 128 low_putchar('\n');129 138 } 130 139 … … 212 221 213 222 while ((rercd = eSysLog_read(&logbuf)) >= 0) { 214 if ( rercd > 0) {223 if (((uint_t) rercd) > 0U) { 215 224 syslog_lostmsg((uint_t) rercd, low_putchar); 216 225 } 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.