X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_sprintf.h;h=9e30dc62f6ed7df7780929fe0c361d9ab21a9f3b;hp=bd498a46c9a6c7e9c8f77cf56e2ace22c069d20c;hb=d9557a9bea506fd8b40acd7a44a16b46e2a97848;hpb=3dd047dc0f70231ea93e5b3b40a9142a391bf507 diff --git a/palacios/include/palacios/vmm_sprintf.h b/palacios/include/palacios/vmm_sprintf.h index bd498a4..9e30dc6 100644 --- a/palacios/include/palacios/vmm_sprintf.h +++ b/palacios/include/palacios/vmm_sprintf.h @@ -22,14 +22,23 @@ #ifdef __V3VEE__ #include - +#include int sprintf(char *buf, const char *cfmt, ...); // __attribute__ ((format (printf, 1, 2))); -int vsprintf(char *buf, const char *cfmt, va_list ap); +//int vsprintf(char *buf, const char * cfmt, va_list ap); int snprintf(char *str, size_t size, const char * fmt, ...); int vsnprintf(char *str, size_t size, const char * fmt, va_list ap); -int vsnrprintf(char *str, size_t size, int radix, const char * fmt, va_list ap); +//int vsnrprintf(char *str, size_t size, int radix, const char * fmt, va_list ap); + +#define HD_COLUMN_MASK 0xff +#define HD_DELIM_MASK 0xff00 +#define HD_OMIT_COUNT (1 << 16) +#define HD_OMIT_HEX (1 << 17) +#define HD_OMIT_CHARS (1 << 18) + + +void v3_hexdump(const void * ptr, int length, const char * hdr, int flags); #endif