X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_util.c;h=029f9fda37bc98c4e2388de685ca6db33ba05c08;hb=e0519b6111165e0d99987d7f852875366c41bfd9;hp=7e5c3aef267fc3cd7baa84ed502b254c24852308;hpb=e70e95962c26832628d586e07f9cd1a2e1852d72;p=palacios.git diff --git a/palacios/src/palacios/vmm_util.c b/palacios/src/palacios/vmm_util.c index 7e5c3ae..029f9fd 100644 --- a/palacios/src/palacios/vmm_util.c +++ b/palacios/src/palacios/vmm_util.c @@ -22,7 +22,7 @@ #include -extern struct vmm_os_hooks * os_hooks; +extern struct v3_os_hooks * os_hooks; void PrintTraceHex(unsigned char x) { @@ -44,17 +44,16 @@ void PrintTraceLL(ullong_t num) { } -void PrintTraceMemDump(unsigned char *start, int n) -{ +void PrintTraceMemDump(uchar_t * start, int n) { int i, j; for (i = 0; i < n; i += 16) { - PrintTrace("%8x", (unsigned)(start + i)); + PrintTrace("%p", (void *)(start + i)); for (j = i; (j < (i + 16)) && (j < n); j += 2) { PrintTrace(" "); - PrintTraceHex(*((unsigned char *)(start + j))); + PrintTraceHex(*(uchar_t *)(start + j)); if ((j + 1) < n) { - PrintTraceHex(*((unsigned char *)(start + j + 1))); + PrintTraceHex(*((uchar_t *)(start + j + 1))); } } PrintTrace(" ");