Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/library/t_perror.c
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/library/t_perror.c
r321 r429 5 5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 6 6 * Toyohashi Univ. of Technology, JAPAN 7 * Copyright (C) 2004-20 06by Embedded and Real-Time Systems Laboratory7 * Copyright (C) 2004-2018 by Embedded and Real-Time Systems Laboratory 8 8 * Graduate School of Information Science, Nagoya Univ., JAPAN 9 9 * … … 48 48 #include <t_stdlib.h> 49 49 50 #ifndef TOPPERS_OMIT_SYSLOG 51 52 static const char message[] = "%s (%d) reported by `%s' in line %d of `%s'."; 53 50 54 void 51 t_perror(uint_t prio, const char *file, int_t line, const char *expr, ER ercd) 55 tt_perror(SYSLOG *p_logbuf, const char *file, int_t line, 56 const char *expr, ER ercd) 52 57 { 53 syslog_5(prio, "%s (%d) reported by `%s' in line %d of `%s'.", 54 itron_strerror(ercd), SERCD(ercd), expr, line, file); 58 p_logbuf->logtype = LOG_TYPE_COMMENT; 59 p_logbuf->logpar[0] = (LOGPAR) message; 60 p_logbuf->logpar[1] = (LOGPAR) itron_strerror(ercd); 61 p_logbuf->logpar[2] = (LOGPAR) SERCD(ercd); 62 p_logbuf->logpar[3] = (LOGPAR) expr; 63 p_logbuf->logpar[4] = (LOGPAR) line; 64 p_logbuf->logpar[5] = (LOGPAR) file; 65 } 55 66 56 } 67 #endif /* TOPPERS_OMIT_SYSLOG */
Note:
See TracChangeset
for help on using the changeset viewer.