Currently in our kernel, we manually add a prefix of the name of a device to the messages we print to the console. Instead of doing this manually, it would be nice to have a function that automatically prefix the message with the corresponding device name. Or in the case of a PCI device, it might be nice to also add the PCI address etc.
A example API could be: dmesgln_device(device, "Example message: {}", "Hello Friends!"sv);
Or it could take a File
instead, which is the base class of the Kernel::Device
.
Same places where this could be used:
serenity/Kernel/Storage/ATA/AHCI/Port.cpp
Line 186 in 8b0a464
Grepping for dmesgln("
will show many more examples of where such an API could be used.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too