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
|
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
|
||||||
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
|
#endif
|
||||||
tty_ldisc_deref(ld);
|
tty_ldisc_deref(ld);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user