int do_printk(int msg_level, const char *fmt, ...) { va_list args; int i; if (!console_log_level(msg_level)) return 0; #if CONFIG_SQUELCH_EARLY_SMP && defined(__PRE_RAM__) if (!boot_cpu()) return 0; #endif DISABLE_TRACE; spin_lock(&console_lock); va_start(args, fmt); i = vtxprintf(wrap_putchar, fmt, args, NULL); va_end(args); console_tx_flush(); spin_unlock(&console_lock); ENABLE_TRACE; return i; }
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) { int i; struct vsnprintf_context ctx; DISABLE_TRACE; ctx.str_buf = buf; ctx.buf_limit = size ? size - 1 : 0; i = vtxprintf(str_tx_byte, fmt, args, &ctx); if (size) *ctx.str_buf = '\0'; ENABLE_TRACE; return i; }
int do_printk(int msg_level, const char *fmt, ...) { va_list args; int i; if (msg_level > console_loglevel) { return 0; } va_start(args, fmt); i = vtxprintf(console_tx_byte, fmt, args); va_end(args); #if CONFIG_CONSOLE_NE2K ne2k_transmit(CONFIG_CONSOLE_NE2K_IO_PORT); #endif return i; }
int do_printk(int msg_level, const char *fmt, ...) { va_list args; int i; if (msg_level > console_loglevel) { return 0; } va_start(args, fmt); i = vtxprintf(console_tx_byte, fmt, args); va_end(args); _console_tx_flush(); return i; }
int do_printk(int msg_level, const char *fmt, ...) { va_list args; int i; if (msg_level > console_loglevel) { return 0; } #if CONFIG_SQUELCH_EARLY_SMP if (!boot_cpu()) return 0; #endif va_start(args, fmt); i = vtxprintf(console_tx_byte, fmt, args); va_end(args); console_tx_flush(); return i; }
void do_vtxprintf(const char *fmt, va_list args) { vtxprintf(wrap_putchar, fmt, args, NULL); console_tx_flush(); }