drivers/serial: Update log_dump to only store console logs
Currently log_dump stores all the data that is sent via the serial driver
interface. Updated log_dump to only store the console logs.
@@ -269,7 +269,11 @@ static int uart_putxmitchar(FAR uart_dev_t *dev, int ch, bool oktoblock)
if (nexthead != dev->xmit.tail) {
dev->xmit.buffer[dev->xmit.head] = ch;
#ifdef CONFIG_LOG_DUMP
+ /* only save UART data that is being transmitted to the console */
+
+ if (dev->isconsole) {
log_dump_save(ch);
+ }
#endif
dev->xmit.head = nexthead;
return OK;
