MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / Err

Function Err

src/include/kernel_log.hpp:200–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198/// 以 ERROR 级别记录日志
199template <typename... Args>
200inline auto Err(etl::format_string<Args...> fmt, Args&&... args) -> void {
201 if constexpr (detail::Level::kErr < detail::kMinLevel) {
202 return;
203 }
204 detail::Log<detail::Level::kErr>(fmt, static_cast<Args&&>(args)...);
205}
206
207/// 强制将队列中所有日志条目输出至串口
208__always_inline auto Flush() -> void { detail::TryDrain(); }

Callers 15

syscall_dispatcherFunction · 0.85
sys_exitFunction · 0.85
sys_cloneFunction · 0.85
sys_forkFunction · 0.85
sys_gettidFunction · 0.85
sys_set_tid_addressFunction · 0.85
sys_futexFunction · 0.85
sys_sched_getaffinityFunction · 0.85
sys_sched_setaffinityFunction · 0.85
sys_killFunction · 0.85
sys_sigactionFunction · 0.85
sys_sigprocmaskFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_tick_incrementsFunction · 0.68
test_sleep_timingFunction · 0.68
test_runtime_trackingFunction · 0.68
test_thread_group_basicFunction · 0.68
test_recursive_lockFunction · 0.68
test_interrupt_restoreFunction · 0.68
spinlock_smp_testFunction · 0.68
spinlock_smp_buffer_testFunction · 0.68
spinlock_smp_string_testFunction · 0.68
spinlock_testFunction · 0.68