Skip to contentSkip to conversation

posix: only use rt_printf when in primary mode

Xenomai-core Jan Kiszka 1 participant 2 messages Jun 28, 2011

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Gilles,

dynamic printf backend selection is a suboptimal idea when you want chronological output (not that uncommon during debugging). The native printf may actually hit the screen (or the log file) before some earlier queued rt_printf message because the dump thread is busy or has a lower priority.

It's ok to do native printf for non-shadows. But once a thread was mapped, printf needs to go through the rt queue, even in secondary mode.

Jan

author
#1 lore raw
Quoted 7 lines · Jan Kiszka

Hi Gilles,

dynamic printf backend selection is a suboptimal idea when you want chronological output (not that uncommon during debugging). The native printf may actually hit the screen (or the log file) before some earlier queued rt_printf message because the dump thread is busy or has a lower priority.

Oh, I missed the buffer flush - that should work.

Sorry for the noise.

Jan