libs: Mode-switching notice/debug/warning/panic
Hi,
it seems those functions above force the caller always to secondary mode (ok, panic is not an issue). Intentionally? To avoid using the wrapped versions which may trigger one of the calls again? Or could we also call the RT versions, at least after init_done?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 7 lines · Jan Kiszka
Hi,
it seems those functions above force the caller always to secondary mode (ok, panic is not an issue). Intentionally? To avoid using the wrapped versions which may trigger one of the calls again? Or could we also call the RT versions, at least after
init_done?
If you refer to __printout() in libboilerplate, I believe so, since all the preceding code assumes the process is already bound to the rt system anyway, which is required to init the printf support. Synchronizing with the printer loop before leaving would be a must though - maybe directly into __panic() for that purpose.
Signature · 1 line
Philippe.