test: mbox: Type buf parameter to dump_buf() as `const void *`

This makes it a bit more ergonomic to use by not forcing the caller to
cast.

Change-Id: I5d40715f4de84f174157a39d459dc1b40a94a949
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/test/mbox.c b/test/mbox.c
index 6fe7277..c3b3574 100644
--- a/test/mbox.c
+++ b/test/mbox.c
@@ -39,8 +39,9 @@
 
 #define STEP 16
 
-void dump_buf(const uint8_t *buf, size_t len)
+void dump_buf(const void *buf, size_t len)
 {
+	const uint8_t *buf8 = buf;
 	int i;
 
 	for (i = 0; i < len; i += STEP) {
@@ -53,7 +54,7 @@
 
 		printf("0x%08x:\t", i);
 		for (j = 0; j < max; j++)
-			printf("0x%02x, ", buf[i + j]);
+			printf("0x%02x, ", buf8[i + j]);
 
 		printf("\n");
 	}
diff --git a/test/mbox.h b/test/mbox.h
index 0eef28c..929ca22 100644
--- a/test/mbox.h
+++ b/test/mbox.h
@@ -44,6 +44,6 @@
 	size_t len);
 
 /* Helpers */
-void dump_buf(const uint8_t *buf, size_t len);
+void dump_buf(const void *buf, size_t len);
 
 #endif /* TEST_MBOX_H */