aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-06-18 16:03:27 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-06-18 16:10:33 -0400
commit1ca2e0c019b4f24227e29ee920c3d6190c9f2d7a (patch)
tree0ef719408f5ed074069d69e178151c941a90d618
parent9d3d3de1ae62d103cadf56d437d0e4d66e8740b3 (diff)
downloadstasis-1ca2e0c019b4f24227e29ee920c3d6190c9f2d7a.tar.gz
Use DEBUG_HEXDUMP_FMT_BYTES
-rw-r--r--src/lib/core/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c
index 89d0baa..52263f8 100644
--- a/src/lib/core/utils.c
+++ b/src/lib/core/utils.c
@@ -941,7 +941,7 @@ void debug_hexdump(char *data, int len) {
for (int i = 0; i < padding; i++) {
strcat(bytes, " ");
}
- snprintf(output, 6 + sizeof(addr) + sizeof(bytes) + sizeof(ascii), "%s | %s | %s", addr, bytes, ascii);
+ snprintf(output, DEBUG_HEXDUMP_FMT_BYTES + sizeof(addr) + sizeof(bytes) + sizeof(ascii), "%s | %s | %s", addr, bytes, ascii);
puts(output);
}
@@ -960,7 +960,7 @@ int grow(const size_t size_new, size_t *size_orig, char **data) {
}
if (tmp != *data) {
*data = tmp;
- }
+ Dynamic commands}
*size_orig = new_size;
}
return 0;