Commit 982c4fbc authored by Stefan Hackenberg's avatar Stefan Hackenberg
Browse files

Add INFOARRAY

parent 8f86b215
......@@ -39,8 +39,12 @@
#if defined(LOG_LEVEL_INFO)
#define INFO(x, ...) std::printf("[INFO: %s() %s:%d] " x "\r\n", __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
#define INFOARRAY(buffer, length, x, ...) \
std::printf("[INFO: %s() %s:%d] " x " ", __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__); \
printfhex(buffer, length)
#else
#define INFO(x, ...)
#define INFOARRAY(x, ...)
#endif
#if defined(LOG_LEVEL_WARN)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment