gfx2log: add function for HexHump

This commit is contained in:
Thomas Bernard
2018-11-26 00:26:02 +01:00
parent 217cd01aaa
commit 36f4e6261a
2 changed files with 31 additions and 0 deletions

View File

@@ -22,6 +22,12 @@
#define GFX2LOG_H_DEFINED
#include <stdarg.h>
#include "struct.h"
/**
* @defgroup log error and debugging logs
* @{
*/
typedef enum {
GFX2_ERROR = 0,
@@ -32,8 +38,14 @@ typedef enum {
extern GFX2_Log_priority_T GFX2_verbosity_level;
/**
* Log error or debugging info
*/
extern void GFX2_Log(GFX2_Log_priority_T priority, const char * fmt, ...);
extern void GFX2_LogV(GFX2_Log_priority_T priority, const char * fmt, va_list ap);
extern void GFX2_LogHexDump(GFX2_Log_priority_T priority, const char * header, const byte * data, long offset, long count);
/** @} */
#endif