feature (logger): implemented debug log macro which logs file and line number of its call in adition to a given format string
This commit is contained in:
parent
6dc7e0a11e
commit
c1ec695ff6
|
@ -7,6 +7,8 @@
|
|||
|
||||
#define LOG_PORT 0x3F8
|
||||
|
||||
#define DEBUG(f, args...) log(LOG_DEBUG, "%s:%d -> " f, __FILE_NAME__, __LINE__, ##args)
|
||||
|
||||
typedef enum {
|
||||
LOG_NONE,
|
||||
LOG_INFO,
|
||||
|
|
|
@ -60,6 +60,8 @@ void kmain(boot_info_T boot_info) {
|
|||
|
||||
log(LOG_INFO, "!=====[ Kernel Initialized ]=====!\n");
|
||||
|
||||
DEBUG("test %d", 1312);
|
||||
|
||||
pci_device_T* ahci_controller = pci_manager_find_device(PCI_CLASS_MASS_STORAGE_CONTROLLER, PCI_SUBCLASS_SERIAL_ATA_CONTROLLER, 1);
|
||||
|
||||
CORE_HALT_FOREVER
|
||||
|
|
Loading…
Reference in New Issue