示例#1
0
文件: log.c 项目: dvdhrm/ti-tutorium
void log_llog(const char *file,
	      int line,
	      const char *func,
	      const char *subs,
	      unsigned int sev,
	      const char *format,
	      va_list args)
{
	log_submit(file, line, func, NULL, subs, sev, format, args);
}
示例#2
0
/*===========================================================================

FUNCTION DSRLP_LOG_TX_SEND_FRAMES

DESCRIPTION
  Terminate and send the accumulated RLP Tx partial frames log.

DEPENDENCIES
  None.

RETURN VALUE
  None.

SIDE EFFECTS
  An RLP Tx partial frames log may be sent.

===========================================================================*/
void dsrlp_log_tx_send_frames (void)
{
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  /*-------------------------------------------------------------------------
    Only send log if there is data in the buffer
  -------------------------------------------------------------------------*/
  if (dsrlp_log_tx_rlp_frm_buf.hdr.len > FPOS(log_rlp_frames_type, var_len_buf))
  {
    (void) log_submit((log_type *) &dsrlp_log_tx_rlp_frm_buf);

    /*-----------------------------------------------------------------------
      Re-initialize 
    -----------------------------------------------------------------------*/
    dsrlp_log_tx_init_frm_buf();
  }

} /* dsrlp_log_tx_send_frames() */