Skip to main content

Module markers

Module markers 

Source
Expand description

Stable, greppable log markers that the HIL detect_crash contract keys on. Treat these as part of the public contract — do not reword without updating the test harness.

Constants§

CONSOLE_DROP
Prefix of the drain’s ring-overrun marker ( <n>B] follows).
CONSOLE_SHED
Prefix of the drain’s shed-line marker ( <n>B] follows). Distinct from CONSOLE_DROP on purpose: a shed line is bounded, intended loss, while an overwrite means a queued record was cut. A gate should treat them differently, and one literal for both makes that impossible.
CONSOLE_TRUNC
Ends a log line cut at the line buffer (see super::console_line). The kept part is real; what followed it is gone.
DBG_SELFTEST
Emitted at debug! level by super::init — proves the level filter passes debug when a directive asks for it. HIL asserts it at boot.
IDENTITY
Logged once at boot by super::install (the app-desc feature) — project name, version (or the identity-enforced git mark), and an app_elf_sha256 prefix.
PANIC
Emitted by super::on_panic before halt.
PREV_PANIC
Logged once at boot when a previous-run panic breadcrumb is read back.