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/library/t_perror.c

    r321 r429  
    55 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    66 *                              Toyohashi Univ. of Technology, JAPAN
    7  *  Copyright (C) 2004-2006 by Embedded and Real-Time Systems Laboratory
     7 *  Copyright (C) 2004-2018 by Embedded and Real-Time Systems Laboratory
    88 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    99 *
     
    4848#include <t_stdlib.h>
    4949
     50#ifndef TOPPERS_OMIT_SYSLOG
     51
     52static const char       message[] = "%s (%d) reported by `%s' in line %d of `%s'.";
     53
    5054void
    51 t_perror(uint_t prio, const char *file, int_t line, const char *expr, ER ercd)
     55tt_perror(SYSLOG *p_logbuf, const char *file, int_t line,
     56                                                                                        const char *expr, ER ercd)
    5257{
    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}
    5566
    56 }
     67#endif /* TOPPERS_OMIT_SYSLOG */
Note: See TracChangeset for help on using the changeset viewer.