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;