diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-12 16:29:37 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-08 08:27:23 -0700 |
commit | d07ade8014628930057f5398fc26b06a527bb4d0 (patch) | |
tree | 492e5a416bd2d6a9d701dde323e7643f397b3f37 /libmisc/include | |
parent | 957931e0f585b5132bf16e28b7eb3e68aec70d9a (diff) |
w5500: Add DEBUG logging
Diffstat (limited to 'libmisc/include')
-rw-r--r-- | libmisc/include/libmisc/log.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmisc/include/libmisc/log.h b/libmisc/include/libmisc/log.h index 37da20b..c1e4a05 100644 --- a/libmisc/include/libmisc/log.h +++ b/libmisc/include/libmisc/log.h @@ -7,6 +7,8 @@ #ifndef _LIBMISC_LOG_H_ #define _LIBMISC_LOG_H_ +#include <stdint.h> /* for uint8_t */ + #ifndef LOG_NAME #error "each compilation unit that includes <libmisc/log.h> must define LOG_NAME" #endif @@ -28,4 +30,6 @@ #define debugf(fmt, ...) do { if (_LOG_CAT3(CONFIG_, LOG_NAME, _DEBUG) && !_LOG_NDEBUG) \ _log_printf("debug: " _LOG_STR(LOG_NAME) ": " fmt "\n" __VA_OPT__(,) __VA_ARGS__); } while (0) +const char *const_byte_str(uint8_t b); + #endif /* _LIBMISC_LOG_H_ */ |