#ifndef __debug_h #define __debug_h //#include "debug.h" //#define PRINT_ENA #ifdef PRINT_ENA #define PRINTF pr_info #else //!PRINT_ENA: #define PRINTF printf_empty #endif //!PRINT_ENA extern void print_buf( const char *pMes, const void *pv, int sz); extern void print_buf_ext( const char *pMes, const void *pv, int sz); extern void format_buf( char *ps, int sz, const char *pBuf, int szBuf, int space, int lf); static inline void printf_empty( const char *psfmt, ...) {} #endif //__debug_h