libserial/serdev.c
static void SerDevLogBytes(byte_t buffer[], size_t size, bool_t bNewLine)
{
  size_t   n;
  FILE    *fp;
  char    *sep = " ";

  if( size == 0 )
  {
    return;
  }

  fp = LOG_GET_LOGFP();

  for(n=0; n<size; ++n)
  {
    fprintf(fp, "%s0x%02x", sep, buffer[n]);
  }

  if( bNewLine )
  {
    fprintf(fp, "\n");
  }
}
/*! 
 * \brief Log read/written bytes to log stream.
 *
 * \param buffer    Buffer of bytes.
 * \param size      Number of bytes in buffer to log.
 * \param bNewLine  Do [not] output trailing newline.
 */
\brief Log read/written bytes to log stream.
\param buffer    Buffer of bytes.
\param size      Number of bytes in buffer to log.
\param bNewLine  Do [not] output trailing newline.
\ brief Log read / written bytes to log stream . \ param buffer Buffer of bytes . \ param size Number of bytes in buffer to log . \ param bNewLine Do [ not ] output trailing newline .
static void SerDevLogBytes(byte_t buffer[], size_t size, bool_t bNewLine)
{
  size_t   n;
  FILE    *fp;
  char    *sep = " ";
  if( size == 0 )
  {
    return;
  }
  fp = LOG_GET_LOGFP();
  for(n=0; n<size; ++n)
  {
    fprintf(fp, "%s0x%02x", sep, buffer[n]);
  }
  if( bNewLine )
  {
    fprintf(fp, "\n");
  }
}
static void SerDevLogBytes ( byte_t buffer [ ] , size_t size , bool_t bNewLine ) { size_t n ; FILE * fp ; char * sep = " " ; if ( size == 0 ) { return ; } fp = LOG_GET_LOGFP ( ) ; for ( n = 0 ; n < size ; ++ n ) { fprintf ( fp , " " , sep , buffer [ n ] ) ; } if ( bNewLine ) { fprintf ( fp , " \n " ) ; } }
\brief Log read/written bytes to log stream.
\ brief Log read / written bytes to log stream .