log: introduce a knob to make assert_return() critical

These can be used to check if we trigger assert_return()
unexpectedly.

Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
This commit is contained in:
Yu Watanabe
2023-11-16 10:48:37 +09:00
parent 354171a5db
commit 93bb67090c
2 changed files with 16 additions and 0 deletions

View File

@@ -331,6 +331,9 @@ void log_set_open_when_needed(bool b);
* stderr, the console or kmsg */
void log_set_prohibit_ipc(bool b);
void log_set_assert_return_is_critical(bool b);
bool log_get_assert_return_is_critical(void) _pure_;
int log_dup_console(void);
int log_syntax_internal(