Skip to contentSkip to conversation

libs: Mode-switching notice/debug/warning/panic

Xenomai Jan Kiszka 2 participants 2 messages Feb 1, 2018

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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
#1 lore raw
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.