Stackdump messages are not shown on assertion
Because logm's print buffer can't be flushed after assert.
These messages should be delivered with low output directly.
Change-Id: Ifaca4b60bed8999307672d8905e4c53cbafa2072
int ret = 0;
buffer_state_t op;
- if (g_logm_isready) {
+ if (g_logm_isready && !up_interrupt_context()) {
flags = irqsave();
if (g_logm_count < LOGM_RSVBUF_COUNT) {
irqrestore(flags);
} else {
- /* Low Output: Sytem is not yet completely ready */
+ /* Low Output: Sytem is not yet completely ready or this is called from interrupt handler */
#ifdef CONFIG_ARCH_LOWPUTC
struct lib_outstream_s strm;
lib_lowoutstream(&strm);