1.不记录usb输出的log
This commit is contained in:
parent
9cdfda03f5
commit
c75b6bee25
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user