diff --git a/arch/x86/console.c b/arch/x86/console.c index add3aa2529..f276c80be7 100644 --- a/arch/x86/console.c +++ b/arch/x86/console.c @@ -16,7 +16,7 @@ static int console_loglevel(void) return CONFIG_DEFAULT_CONSOLE_LOGLEVEL; } -void console_tx_byte(unsigned char byte) +void console_tx_byte(unsigned char byte, void *arg) { if (byte == '\n') { uart8250_tx_byte(TTYSx_BASE, '\r'); diff --git a/include/console/console.h b/include/console/console.h index 5bbbd50248..308148c102 100644 --- a/include/console/console.h +++ b/include/console/console.h @@ -21,7 +21,7 @@ #include void console_init(void); -void console_tx_byte(unsigned char byte); +void console_tx_byte(unsigned char byte, void *arg); void console_tx_flush(void); unsigned char console_rx_byte(void); int console_tst_byte(void); @@ -30,7 +30,7 @@ void die(const char *msg); struct console_driver { void (*init)(void); - void (*tx_byte)(unsigned char byte); + void (*tx_byte)(unsigned char byte, void *arg); void (*tx_flush)(void); unsigned char (*rx_byte)(void); int (*tst_byte)(void);