Commit a3e11146 authored by Michael Beck's avatar Michael Beck
Browse files

more portable printf format

parent e40d1594
......@@ -3,10 +3,10 @@
static void dumpMem(void* ptr, size_t size)
{
size_t i;
char* p = ptr;
unsigned char* p = ptr;
printf("\n");
for(i = 0; i < size; ++i) {
printf("%02hhx", p[i]);
printf("%02x", p[i]);
if((i % 4) == 3) {
printf("\n");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment