X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_sprintf.c;h=b80f3faacd7eabf818f422fc4ea7802baf02d8a0;hb=374b2d6d22a0e0dc6ed8d3d628e635ab935072e0;hp=c1ca717909dac77765d614c827de9b71fe88b5e2;hpb=051d39a706ccd24493cc3a0a1558a071f5673ab5;p=palacios.git diff --git a/palacios/src/palacios/vmm_sprintf.c b/palacios/src/palacios/vmm_sprintf.c index c1ca717..b80f3fa 100644 --- a/palacios/src/palacios/vmm_sprintf.c +++ b/palacios/src/palacios/vmm_sprintf.c @@ -91,7 +91,6 @@ struct snprintf_arg { ( defined(CONFIG_BUILT_IN_SPRINTF) || \ defined(CONFIG_BUILT_IN_SNPRINTF) || \ defined(CONFIG_BUILT_IN_VSPRINTF) || \ - defined(CONFIG_BUILT_IN_VSNPRINTF) || \ defined(CONFIG_BUILT_IN_VSNRPRINTF )) static char * ksprintn(char * nbuf, uint64_t num, int base, int *len, int upper); @@ -146,7 +145,7 @@ int snprintf(char * str, size_t size, const char * format, ...) { #endif -#ifdef CONFIG_BUILT_IN_VSNPRINTF + /* * Scaled down version of vsnprintf(3). */ @@ -162,7 +161,7 @@ int vsnprintf(char * str, size_t size, const char * format, va_list ap) { } return (retval); } -#endif + #ifdef CONFIG_BUILT_IN_VSNRPRINTF @@ -576,35 +575,35 @@ void v3_hexdump(const void * ptr, int length, const char * hdr, int flags) { cp = ptr; for (i = 0; i < length; i+= cols) { if (hdr != NULL) - PrintDebug("%s", hdr); + V3_Print("%s", hdr); if ((flags & HD_OMIT_COUNT) == 0) - PrintDebug("%04x ", i); + V3_Print("%04x ", i); if ((flags & HD_OMIT_HEX) == 0) { for (j = 0; j < cols; j++) { k = i + j; if (k < length) - PrintDebug("%c%02x", delim, cp[k]); + V3_Print("%c%02x", delim, cp[k]); else - PrintDebug(" "); + V3_Print(" "); } } if ((flags & HD_OMIT_CHARS) == 0) { - PrintDebug(" |"); + V3_Print(" |"); for (j = 0; j < cols; j++) { k = i + j; if (k >= length) - PrintDebug(" "); + V3_Print(" "); else if (cp[k] >= ' ' && cp[k] <= '~') - PrintDebug("%c", cp[k]); + V3_Print("%c", cp[k]); else - PrintDebug("."); + V3_Print("."); } - PrintDebug("|"); + V3_Print("|"); } - PrintDebug("\n"); + V3_Print("\n"); } }