
13 Nov
2021
13 Nov
'21
7:14 p.m.
Hi Andy,
On Tue, 9 Nov 2021 at 05:03, Andy Shevchenko andriy.shevchenko@linux.intel.com wrote:
debug_hex_dump() and debug_hex_dump_bytes() conditionally print the dump based on DEBUG definition.
Signed-off-by: Andy Shevchenko andriy.shevchenko@linux.intel.com
include/hexdump.h | 4 ++++ lib/hexdump.c | 60 ++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 56 insertions(+), 8 deletions(-)
+Heinrich Schuchardt
Is it possible to resolve this in the header file? It is a bit odd to have to add DEBUG to hexdump.c in order to get debug output.
Note also the logging system so you can do
log(LOG_CATEGORY, dbg ? LOGL_DEBUG : LOGL_INFO, "fmt ...", ...)
Regards, Simon