X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm_util.c;h=3164e69f2724d42c4beef9db1cbd8b8cb923ef4a;hb=4939ecae04ce6416f404670640620a23aee9b914;hp=2583c399652463cdb3b895e1a7e086f6e6f3fe14;hpb=01e2bfdc462dbbe8d62b71c7e99e198c27844f0f;p=palacios.git diff --git a/palacios/src/geekos/vmm_util.c b/palacios/src/geekos/vmm_util.c index 2583c39..3164e69 100644 --- a/palacios/src/geekos/vmm_util.c +++ b/palacios/src/geekos/vmm_util.c @@ -1,10 +1,14 @@ #include +#include + +extern struct vmm_os_hooks * os_hooks; + void PrintTraceHex(unsigned char x) { unsigned char z; - z = (x>>4) & 0xf ; + z = (x >> 4) & 0xf ; PrintTrace("%x", z); z = x & 0xf; PrintTrace("%x", z); @@ -15,19 +19,22 @@ void PrintTraceMemDump(unsigned char *start, int n) { int i, j; - for (i=0;i=32) && (start[j]<=126)) ? start[j] : '.'); + for (j = i; (j < (i + 16)) && (j < n); j++) { + PrintTrace("%c", ((start[j] >= 32) && (start[j] <= 126)) ? start[j] : '.'); } PrintTrace("\n"); } } + + +