/var/log/syslog日志usb接口

p:~# cat /proc/bus/input/devices |grep usb
P: Phys=usb-0000:00:05.1-1/button
S: Sysfs=/devices/pci0000:00/0000:00:05.1/usb2/2-1/2-1:1.0/input/input15
root@kylin-CZC-LS3A3000-LS7A-laptop:~# cat /proc/bus/input/devices |grep usb
P: Phys=usb-0000:00:05.1-1/button
S: Sysfs=/devices/pci0000:00/0000:00:05.1/usb2/2-1/2-1:1.0/input/input15
root@kylin-CZC-LS3A3000-LS7A-laptop:~#

tail -f /var/log/dmesg
(Nothing has been logged yet.)

/var/log/syslog插拔usb都会产生日志

# tail -f /var/log/syslog

上一篇:第四章-shceme和数据类型优化


下一篇:QT5.4.2静态编译(包含QtWebKit),在VS2013上创建项目,并成功运行