-#if defined(CONFIG_BUILT_IN_STDIO) && \
- ( 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 ))
+#if defined(V3_CONFIG_BUILT_IN_STDIO) && \
+ ( defined(V3_CONFIG_BUILT_IN_SPRINTF) || \
+ defined(V3_CONFIG_BUILT_IN_SNPRINTF) || \
+ defined(V3_CONFIG_BUILT_IN_VSPRINTF) || \
+ defined(V3_CONFIG_BUILT_IN_VSNRPRINTF ))
static char * ksprintn(char * nbuf, uint64_t num, int base, int *len, int upper);
static void snprintf_func(int ch, void * arg);
static int kvprintf(char const * fmt, void (*func)(int, void *), void * arg, int radix, va_list ap);
-#ifdef CONFIG_BUILT_IN_SPRINTF
+#ifdef V3_CONFIG_BUILT_IN_SPRINTF
/*
* Scaled down version of sprintf(3).
*/
#endif
-#ifdef CONFIG_BUILT_IN_VSPRINTF
+#ifdef V3_CONFIG_BUILT_IN_VSPRINTF
/*
* Scaled down version of vsprintf(3).
*/
#endif
-#ifdef CONFIG_BUILT_IN_SNPRINTF
+#ifdef V3_CONFIG_BUILT_IN_SNPRINTF
/*
* Scaled down version of snprintf(3).
*/
#endif
-#ifdef CONFIG_BUILT_IN_VSNPRINTF
+
/*
* Scaled down version of vsnprintf(3).
*/
}
return (retval);
}
-#endif
-#ifdef CONFIG_BUILT_IN_VSNRPRINTF
+
+#ifdef V3_CONFIG_BUILT_IN_VSNRPRINTF
/*
* Kernel version which takes radix argument vsnprintf(3).
*/
}
-#endif // CONFIG_BUILT_IN_STDIO
+#endif // V3_CONFIG_BUILT_IN_STDIO
cp = ptr;
for (i = 0; i < length; i+= cols) {
if (hdr != NULL)
- V3_Print("%s", hdr);
+ V3_Print(VM_NONE, VCORE_NONE, "%s", hdr);
if ((flags & HD_OMIT_COUNT) == 0)
- V3_Print("%04x ", i);
+ V3_Print(VM_NONE, VCORE_NONE, "%04x ", i);
if ((flags & HD_OMIT_HEX) == 0) {
for (j = 0; j < cols; j++) {
k = i + j;
if (k < length)
- V3_Print("%c%02x", delim, cp[k]);
+ V3_Print(VM_NONE, VCORE_NONE, "%c%02x", delim, cp[k]);
else
- V3_Print(" ");
+ V3_Print(VM_NONE, VCORE_NONE, " ");
}
}
if ((flags & HD_OMIT_CHARS) == 0) {
- V3_Print(" |");
+ V3_Print(VM_NONE, VCORE_NONE, " |");
for (j = 0; j < cols; j++) {
k = i + j;
if (k >= length)
- V3_Print(" ");
+ V3_Print(VM_NONE, VCORE_NONE, " ");
else if (cp[k] >= ' ' && cp[k] <= '~')
- V3_Print("%c", cp[k]);
+ V3_Print(VM_NONE, VCORE_NONE, "%c", cp[k]);
else
- V3_Print(".");
+ V3_Print(VM_NONE, VCORE_NONE, ".");
}
- V3_Print("|");
+ V3_Print(VM_NONE, VCORE_NONE, "|");
}
- V3_Print("\n");
+ V3_Print(VM_NONE, VCORE_NONE, "\n");
}
}