Skip to main content

read_debug_log

Function read_debug_log 

Source
pub fn read_debug_log(debug_bytes: &[u8]) -> Vec<DebugRecord>
Expand description

Decode PRINTF records out of the debug-log buffer.

§Panics

Panics when the buffer fails to decode. Swallowing the error into an empty Vec silently drops the PRINTF records the kernel emitted, the operator sees “no debug output” instead of the decode error (Law 10). Fail loud; callers that need the error use try_read_debug_log.