summaryrefslogtreecommitdiff
path: root/include/qemu-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qemu-common.h')
-rw-r--r--include/qemu-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h
index 5e137084b5..7754ee2fcc 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -442,4 +442,10 @@ int64_t pow2floor(int64_t value);
int uleb128_encode_small(uint8_t *out, uint32_t n);
int uleb128_decode_small(const uint8_t *in, uint32_t *n);
+/*
+ * Hexdump a buffer to a file. An optional string prefix is added to every line
+ */
+
+void hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
+
#endif