From c75b6bee25557dac013bd22ec4e9811c150aa87d Mon Sep 17 00:00:00 2001 From: payton Date: Thu, 30 Nov 2023 16:21:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8D=E8=AE=B0=E5=BD=95usb=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E7=9A=84log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BSP/linux-kernel/drivers/tty/tty_io.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BSP/linux-kernel/drivers/tty/tty_io.c b/BSP/linux-kernel/drivers/tty/tty_io.c index a7335f7a7..2a8cb62bd 100755 --- a/BSP/linux-kernel/drivers/tty/tty_io.c +++ b/BSP/linux-kernel/drivers/tty/tty_io.c @@ -1043,7 +1043,10 @@ static ssize_t tty_write(struct file *file, const char __user *buf, else ret = do_tty_write(ld->ops->write, tty, file, buf, count); #ifdef CONFIG_LOGFILE - logfile_save_str((char *)buf, count, 0); + if(!strstr(file->f_path.dentry->d_name.name, "USB")) + { + logfile_save_str((char *)buf, count, 0); + } #endif tty_ldisc_deref(ld); return ret;