Searched hist:"174 a9dbf80238602b7507083080f6e648c171a61" (Results 1 – 1 of 1) sorted by relevance
/haiku/src/add-ons/kernel/bus_managers/acpi/ |
H A D | ACPICAHaiku.cpp | 174a9dbf80238602b7507083080f6e648c171a61 Sun Sep 03 11:57:41 UTC 2023 PulkoMandy <pulkomandy@pulkomandy.tk> ACPI: buffer output before sending it to dprintf
ACPI sometimes print a single message line using several calls to its printf function. We directly map it to dprintf, which causes two problems: - In the syslog, each call to dprintf is prefixed with 'KERN:'. So, several 'KERN:' were added in the middle of such messages. - The successive calls to dprintf may be intertwined with logs from other places, making it difficult to see what message came from where.
To avoid these problems, store data in a buffer until we have a complete line, and only then send it to dprintf. The resulting syslog is much easier to read then.
Change-Id: I745e50b6fbbc3c875716fb68951d8d47312f96f6 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6896 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|