25 #ifndef SPA_DEBUG_MEM_H
26 #define SPA_DEBUG_MEM_H
41 static inline int spa_debug_mem(
int indent,
const void *data,
size_t size)
43 const uint8_t *t = (
const uint8_t*)data;
48 for (i = 0; i < size; i++) {
50 pos = sprintf(buffer,
"%p: ", &t[i]);
51 pos += sprintf(buffer + pos,
"%02x ", t[i]);
52 if (i % 16 == 15 || i == size - 1) {
53 spa_debug(
"%*s" "%s", indent,
"", buffer);
#define spa_debug(fmt,...)
Definition: log.h:44
static int spa_debug_mem(int indent, const void *data, size_t size)
Definition: mem.h:46