swissChili | 3546639 | 2021-06-15 21:15:45 -0700 | [diff] [blame] | 1 | Kernel Logging |
| 2 | ============== |
| 3 | |
| 4 | Drivers and other kernel components may write log messages to the default output |
| 5 | (currently only VGA since it is the only display target implemented) using |
| 6 | ``kprintf`` in ``include/kernel/log.h``. Additional defines in the same file may |
| 7 | help differentiate different types of log messages (i.e. errors, debug |
| 8 | information, etc). :: |
| 9 | |
| 10 | kprintf(OKAY "Something succeeded\n"); |
| 11 | kprintf(ERROR "Something failed :(\n"); |
| 12 | // etc, see log.h for details |