Skip to content

Commit 750627c

Browse files
committed
fixup! serialio: Add function to log to serial port
1 parent bbc94c8 commit 750627c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kernel/debug/debug.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212

1313
# ifdef DEBUG_TO_SERIAL
1414
# include "serial/serial.h"
15-
# define klog(LOG_LEVEL, LOG_FORMAT, ...) serial_printf(SERIAL_PORT1, LOG_FORMAT, ##__VA_ARGS__)
15+
# define klog(LOG_LEVEL, LOG_FORMAT, ...) \
16+
serial_printf(SERIAL_PORT1, LOG_FORMAT, ##__VA_ARGS__)
1617

1718
# else
1819
# include "video/video.h"
19-
# define klog(LOG_LEVEL, LOG_FORMAT, ...) eprintf(LOG_LEVEL, LOG_FORMAT, ##__VA_ARGS__)
20+
# define klog(LOG_LEVEL, LOG_FORMAT, ...) \
21+
eprintf(LOG_LEVEL, LOG_FORMAT, ##__VA_ARGS__)
2022

2123
# endif /* end of DEBUG_TO_SERIAL */
2224

0 commit comments

Comments
 (0)