X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_util.c;h=dc0508432831a9508702391af22de9c05be7decb;hb=29b7ff8811c82ab543f5c969e44ff217637a09c7;hp=8fecd3cc9331116cc21e327c31e2430459303b30;hpb=4f0bb09709fcff0e08aef60c1f0253bbef91f608;p=palacios.git diff --git a/palacios/src/palacios/vmm_util.c b/palacios/src/palacios/vmm_util.c index 8fecd3c..dc05084 100644 --- a/palacios/src/palacios/vmm_util.c +++ b/palacios/src/palacios/vmm_util.c @@ -28,9 +28,9 @@ void v3_dump_mem(uint8_t * start, int n) { V3_Print("%p", (void *)(start + i)); for (j = i; (j < (i + 16)) && (j < n); j += 2) { V3_Print(" "); - V3_Print("%x", *(uint8_t *)(start + j)); + V3_Print("%02x", *(uint8_t *)(start + j)); if ((j + 1) < n) { - V3_Print("%x", *((uint8_t *)(start + j + 1))); + V3_Print("%02x", *((uint8_t *)(start + j + 1))); } } V3_Print(" ");