diff options
Diffstat (limited to 'src/kern/log.c')
-rw-r--r-- | src/kern/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kern/log.c b/src/kern/log.c index e9bd424..e6bbec6 100644 --- a/src/kern/log.c +++ b/src/kern/log.c @@ -12,12 +12,14 @@ void setup_usart2(uint32_t baud_rate); /** This module requires an initialization routine. This is a level2 routine, * so anything running at level3 or lower is guaranteed to have access * to the klong. */ -init2() +void initialize_logging() { setup_usart2(115200); regset(USART2.c_r1, usart_txeie, 1); regset(USART2.c_r1, usart_rxneie, 1); usart_set_enabled(&USART2, USART_ENABLE_TX | USART_ENABLE_RX); + + klogf("Logging has been initalized!\n"); } void klogf(const char* fmt, ...) |