libc: Disable irq for lldbg
Disable irq during lldbg to avoid mixed logs. When irq is disabled,
then printf and dbg logs will not get printed.
@@ -150,7 +150,9 @@ int lowvsyslog(int priority, FAR const char *fmt, va_list ap)
#if defined(CONFIG_LOGM) && defined(CONFIG_SYSLOG2LOGM)
ret = logm_internal(LOGM_LOWPUT, LOGM_UNKNOWN, priority, fmt, ap);
#else
+ irqstate_t flags = irqsave();
ret = lowvsyslog_internal(fmt, ap);
+ irqrestore(flags);
#endif
}
return ret;
