/*************Code for debug_printf/scanf/assert*******************************/ int debug_printf(const char *fmt_s, ...) { va_list ap; int result; va_start(ap, fmt_s); result = _doprint(NULL, debug_putc, -1, (char *)fmt_s, ap); va_end(ap); return result; }
/*************Code for debug_printf/scanf/assert*******************************/ int debug_printf(const char *fmt_s, ...) { va_list ap; int result; /* Do nothing if the debug uart is not initialized.*/ if (s_debugConsole.type == kDebugConsoleNone) { return -1; } va_start(ap, fmt_s); result = _doprint(NULL, debug_putc, -1, (char *)fmt_s, ap); va_end(ap); return result; }