CogniBoost/sw/libCogniBoost/cbLibDev.c
static void cbLogPkt(cbHnd_T       hnd,
                     const char   *sEvent,
                     cbPktHdr_T   *pPktHdr,
                     uint_t        uMsgId)
{
  FILE        *fp;
  const char  *sMsgName;

  fp        = LOG_GET_LOGFP();
  sMsgName  = cbGetMsgName(uMsgId);

  fprintf(fp, "Device %d: %s: "
              "{magic=0x%02x, tid=%d, msglen=%d, msg=%s(msgid=%u)}",
              hnd->m_fd, sEvent,
              pPktHdr->m_hdrMagic, pPktHdr->m_hdrTid, pPktHdr->m_hdrMsgLen,
              sMsgName, uMsgId);
}
/*!
 * \brief Log packet send/receive event.
 *
 * \param hnd     CogniBoost device handle.
 * \param sEvent  Event description string.
 * \param pPktHdr Packet header.
 * \param uMsgId  Message Id.
 */
\brief Log packet send/receive event.
\param hnd     CogniBoost device handle.
\param sEvent  Event description string.
\param pPktHdr Packet header.
\param uMsgId  Message Id.
\ brief Log packet send / receive event . \ param hnd CogniBoost device handle . \ param sEvent Event description string . \ param pPktHdr Packet header . \ param uMsgId Message Id .
static void cbLogPkt(cbHnd_T       hnd,
                     const char   *sEvent,
                     cbPktHdr_T   *pPktHdr,
                     uint_t        uMsgId)
{
  FILE        *fp;
  const char  *sMsgName;
  fp        = LOG_GET_LOGFP();
  sMsgName  = cbGetMsgName(uMsgId);
  fprintf(fp, "Device %d: %s: "
              "{magic=0x%02x, tid=%d, msglen=%d, msg=%s(msgid=%u)}",
              hnd->m_fd, sEvent,
              pPktHdr->m_hdrMagic, pPktHdr->m_hdrTid, pPktHdr->m_hdrMsgLen,
              sMsgName, uMsgId);
}
static void cbLogPkt ( cbHnd_T hnd , const char * sEvent , cbPktHdr_T * pPktHdr , uint_t uMsgId ) { FILE * fp ; const char * sMsgName ; fp = LOG_GET_LOGFP ( ) ; sMsgName = cbGetMsgName ( uMsgId ) ; fprintf ( fp , " " " " , hnd -> m_fd , sEvent , pPktHdr -> m_hdrMagic , pPktHdr -> m_hdrTid , pPktHdr -> m_hdrMsgLen , sMsgName , uMsgId ) ; }
\brief Log packet send/receive event.
\ brief Log packet send / receive event .