From d07ade8014628930057f5398fc26b06a527bb4d0 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 12 Nov 2024 16:29:37 -0700 Subject: w5500: Add DEBUG logging --- libmisc/include/libmisc/log.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmisc/include') 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 /* for uint8_t */ + #ifndef LOG_NAME #error "each compilation unit that includes 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_ */ -- cgit v1.2.3-2-g168b