/* * ------------------------------------------------------------------- * dz_console_print () * * dz_console_print is registered for printk. * The console must be locked when we get here. * ------------------------------------------------------------------- */ static void dz_console_print(struct console *cons, const char *str, unsigned int count) { #ifdef DEBUG_DZ prom_printf((char *) str); #endif while (count--) { if (*str == '\n') dz_console_put_char('\r'); dz_console_put_char(*str++); } }
/* * ------------------------------------------------------------------- * dz_console_print () * * dz_console_print is registered for printk. * The console must be locked when we get here. * ------------------------------------------------------------------- */ static void dz_console_print(struct console *cons, const char *str, unsigned int count) { struct dz_port *dport = &dz_ports[CONSOLE_LINE]; #ifdef DEBUG_DZ prom_printf((char *) str); #endif while (count--) { if (*str == '\n') dz_console_put_char(dport, '\r'); dz_console_put_char(dport, *str++); } }