1.不记录usb输出的log

This commit is contained in:
payton 2023-11-30 16:21:14 +08:00
parent 9cdfda03f5
commit c75b6bee25

View File

@ -1043,7 +1043,10 @@ static ssize_t tty_write(struct file *file, const char __user *buf,
else else
ret = do_tty_write(ld->ops->write, tty, file, buf, count); ret = do_tty_write(ld->ops->write, tty, file, buf, count);
#ifdef CONFIG_LOGFILE #ifdef CONFIG_LOGFILE
if(!strstr(file->f_path.dentry->d_name.name, "USB"))
{
logfile_save_str((char *)buf, count, 0); logfile_save_str((char *)buf, count, 0);
}
#endif #endif
tty_ldisc_deref(ld); tty_ldisc_deref(ld);
return ret; return ret;