blob: 9663d988fd7b2709557bd83aa372ac6b14f7a6c2 [file] [log] [blame]
swissChili35466392021-06-15 21:15:45 -07001Kernel Logging
2==============
3
4Drivers 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
7help differentiate different types of log messages (i.e. errors, debug
swissChilic3b56c12021-07-02 20:52:09 -07008information, etc).
9
10.. code-block:: c
swissChili35466392021-06-15 21:15:45 -070011
12 kprintf(OKAY "Something succeeded\n");
swissChilic3b56c12021-07-02 20:52:09 -070013 kprintf(ERROR "Something failed :(\n");
14 // etc, see log.h for details