/space/home/slher/rel/Beken/v6_4_5/macsw/modules/dbg/src/dbg_print.c File Reference

Implementation of the print functions used for debug. More...

#include <stdarg.h>
#include "rwnx_config.h"
#include "dbg_assert.h"
#include "co_math.h"
#include "dbg.h"

Go to the source code of this file.

Defines

#define FLAG_SHORT_SUPPORTED
 whether short type is supported

Enumerations

enum  {
  S_COPY, S_PERCENT, S_FLAGS, S_WIDTH,
  S_DOT, S_PRECIS, S_SIZE, S_TYPE,
  S_MAX
}
 

States values.


enum  {
  C_OTHER, C_PERCENT, C_DOT, C_ZERO,
  C_DIGIT, C_FLAG, C_SIZE, C_TYPE,
  C_MAX
}
 

character type values


enum  {
  FLAG_SHORT = (1 << 0), FLAG_LONG = (1 << 1), FLAG_SIGNED = (1 << 2), FLAG_SIGN = (1 << 3),
  FLAG_SIGN_SPACE = (1 << 4), FLAG_LEFT = (1 << 5), FLAG_LEAD_ZERO = (1 << 6), FLAG_NEGATIVE = (1 << 7)
}
 

field_flags used to store the format information


Functions

static uint32_t type_get (char c)
 Function to read a particular character and map its type.
void dbg_test_print (const char *fmt,...)
 Function formatting a string and sending it to the defined output.
Debug Print definitions



uint32_t dbg_vsnprintf_offset (char *buffer, uint32_t size, uint32_t offset, const char *fmt, va_list args)
 Execute a pseudo vsnprintf function.
uint32_t dbg_snprintf (char *buffer, uint32_t size, const char *fmt,...)
 Execute a pseudo snprintf function.

Variables

static const uint8_t transition_table [S_MAX][C_MAX]
 Transition table.
static const char hex_upper_table [] = "0123456789ABCDEF"
 Upper case hexadecimal table.

Detailed Description

Implementation of the print functions used for debug.

Copyright (C) RivieraWaves 2011-2019

Definition in file dbg_print.c.


Generated on 14 Jan 2020 for Ceva-RW WLAN FullMAC SW documentation by  doxygen 1.6.1