示例#1
0
/** Formatted print to a serial port, used for printing escape codes.
 * @param port          Port to print to.
 * @param fmt           Format string.
 * @param ...           Arguments to substitute into format. */
static void serial_port_printf(serial_port_t *port, const char *fmt, ...) {
  va_list args;

  va_start(args, fmt);
  do_vprintf(serial_port_printf_helper, port, fmt, args);
  va_end(args);
}
示例#2
0
文件: console.c 项目: Fluray/kboot
/** Output a formatted message to a console.
 * @param console       Console to print to.
 * @param fmt           Format string used to create the message.
 * @param args          Arguments to substitute into format.
 * @return              Number of characters printed. */
int console_vprintf(console_t *console, const char *fmt, va_list args) {
    return do_vprintf(console_vprintf_helper, console, fmt, args);
}
示例#3
0
文件: console.c 项目: Fluray/kboot
/** Output a formatted message to the console.
 * @param fmt           Format string used to create the message.
 * @param args          Arguments to substitute into format.
 * @return              Number of characters printed. */
int vprintf(const char *fmt, va_list args) {
    return do_vprintf(vprintf_helper, NULL, fmt, args);
}