X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm_util.c;h=4aa4d34650b9b32ff46ed48ca9d4173cdca1549c;hb=190b2ef9470c23c275754b74745933d973f8c439;hp=2583c399652463cdb3b895e1a7e086f6e6f3fe14;hpb=701de97007c8b6776998eeab78469a4304f6b871;p=palacios.git diff --git a/palacios/src/geekos/vmm_util.c b/palacios/src/geekos/vmm_util.c index 2583c39..4aa4d34 100644 --- a/palacios/src/geekos/vmm_util.c +++ b/palacios/src/geekos/vmm_util.c @@ -1,10 +1,13 @@ #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 +18,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"); } } + + +