1
0
mirror of synced 2026-01-13 23:45:41 +00:00
Jannis Harder c73c8a39cf kernel/log: Add log_str helper for custom log_* functions/overloads
When implementing custom log_... functions or custom overloads for the
core log functions like log_signal it is necessary to return `char *`
that are valid long enough.

The log_... functions implemented in log.cc use either `log_id_cache` or
`string_buf` which both are cleared on log_pop.

This commit adds a public `log_str` function which stores its argument
in the `log_id_cache` and returns the stored copy, such that custom
log functions outside of log.cc can also create strings that remain
valid until the next `log_pop`.
2024-08-21 10:58:39 +01:00
..
2022-11-30 18:24:35 +01:00
2024-02-06 17:51:24 +01:00
2022-05-27 12:37:03 +02:00
2024-03-18 11:09:23 +13:00
2021-10-08 15:44:07 +02:00
2024-04-02 12:13:22 +02:00
2022-05-13 00:37:14 +02:00
2022-01-28 23:34:41 +01:00
2024-02-06 17:51:24 +01:00
2024-02-06 18:01:26 +01:00
2024-02-06 18:01:26 +01:00
2024-07-18 16:02:11 +02:00
2024-06-17 16:55:36 +02:00
2023-04-17 10:53:05 -07:00
2023-01-11 18:07:16 +01:00