wimax-tools  1.4.4
Macros | Enumerations | Functions | Variables
log.h File Reference
#include <stdio.h>
#include <stdarg.h>

Go to the source code of this file.

Macros

#define w_error(fmt...)   wimaxll_lmsg(W_ERROR, W_VERBOSITY, __func__, __LINE__, NULL, "E: " fmt)
 
#define w_warn(fmt...)   wimaxll_lmsg(W_WARN, W_VERBOSITY, __func__, __LINE__, NULL, "W: " fmt)
 
#define w_info(fmt...)   wimaxll_lmsg(W_INFO, W_VERBOSITY, __func__, __LINE__, NULL, "I: " fmt)
 
#define w_print(fmt...)   wimaxll_lmsg(W_PRINT, W_VERBOSITY, __func__, __LINE__, NULL, fmt)
 
#define w_d0(fmt...)   wimaxll_lmsg(W_D0, W_VERBOSITY, __func__, __LINE__, NULL, "D0: " fmt)
 Log a printf-like debug message (level 0) More...
 
#define w_d1(fmt...)   wimaxll_lmsg(W_D1, W_VERBOSITY, __func__, __LINE__, NULL, "D1: " fmt)
 
#define w_d2(fmt...)   wimaxll_lmsg(W_D2, W_VERBOSITY, __func__, __LINE__, NULL, "D2: " fmt)
 
#define w_d3(fmt...)   wimaxll_lmsg(W_D3, W_VERBOSITY, __func__, __LINE__, NULL, "D3: " fmt)
 
#define w_d4(fmt...)   wimaxll_lmsg(W_D4, W_VERBOSITY, __func__, __LINE__, NULL, "D4: " fmt)
 Log a printf-like debug message (level 4) More...
 
#define w_d5(fmt...)   wimaxll_lmsg(W_D5, W_VERBOSITY, __func__, __LINE__, NULL, "D5: " fmt)
 Log a printf-like debug message (level 5) More...
 
#define w_d6(fmt...)   wimaxll_lmsg(W_D6, W_VERBOSITY, __func__, __LINE__, NULL, "D6: " fmt)
 Log a printf-like debug message (level 6) More...
 
#define w_d7(fmt...)   wimaxll_lmsg(W_D7, W_VERBOSITY, __func__, __LINE__, NULL, "D7: " fmt)
 Log a printf-like debug message (level 7) More...
 

Enumerations

enum  w_levels {
  W_ERROR, W_WARN, W_INFO, W_PRINT,
  W_D0, W_D1, W_D2, W_D3,
  W_D4, W_D5, W_D6, W_D7
}
 

Functions

void wimaxll_msg (struct wimaxll_handle *, const char *fmt,...) __attribute__((format(printf
 
void void wimaxll_lmsg (unsigned level, unsigned current_level, const char *origin_str, unsigned origin_line, struct wimaxll_handle *wmx, const char *fmt,...) __attribute__((format(printf
 
void wimaxll_vlmsg_stderr (struct wimaxll_handle *, unsigned, const char *, const char *, va_list)
 
void wimaxll_msg_hdr_default (char *, size_t, struct wimaxll_handle *, enum w_levels, const char *, unsigned)
 Default header for diagnostic messages. More...
 
void w_abort (int result, const char *fmt,...)
 Log an error message to stderr and abort. More...
 

Variables

void void void(* wimaxll_vlmsg_cb )(struct wimaxll_handle *, unsigned, const char *, const char *, va_list)
 Print library diagnostics messages [backend]. More...
 
void(* wimaxll_msg_hdr_cb )(char *, size_t, struct wimaxll_handle *, enum w_levels, const char *, unsigned)
 Create a header for library diagnostic messages [backend]. More...
 

Macro Definition Documentation

#define w_d1 (   fmt...)    wimaxll_lmsg(W_D1, W_VERBOSITY, __func__, __LINE__, NULL, "D1: " fmt)
#define w_d2 (   fmt...)    wimaxll_lmsg(W_D2, W_VERBOSITY, __func__, __LINE__, NULL, "D2: " fmt)
#define w_d3 (   fmt...)    wimaxll_lmsg(W_D3, W_VERBOSITY, __func__, __LINE__, NULL, "D3: " fmt)
#define w_error (   fmt...)    wimaxll_lmsg(W_ERROR, W_VERBOSITY, __func__, __LINE__, NULL, "E: " fmt)
#define w_info (   fmt...)    wimaxll_lmsg(W_INFO, W_VERBOSITY, __func__, __LINE__, NULL, "I: " fmt)
#define w_print (   fmt...)    wimaxll_lmsg(W_PRINT, W_VERBOSITY, __func__, __LINE__, NULL, fmt)
#define w_warn (   fmt...)    wimaxll_lmsg(W_WARN, W_VERBOSITY, __func__, __LINE__, NULL, "W: " fmt)

Enumeration Type Documentation

enum w_levels
Enumerator
W_ERROR 
W_WARN 
W_INFO 
W_PRINT 
W_D0 
W_D1 
W_D2 
W_D3 
W_D4 
W_D5 
W_D6 
W_D7 

Function Documentation

void void wimaxll_lmsg ( unsigned  level,
unsigned  current_level,
const char *  origin_str,
unsigned  origin_line,
struct wimaxll_handle wmx,
const char *  fmt,
  ... 
)
void wimaxll_msg ( struct wimaxll_handle ,
const char *  fmt,
  ... 
)
void wimaxll_vlmsg_stderr ( struct wimaxll_handle ,
unsigned  ,
const char *  ,
const char *  ,
va_list   
)