]> git.sur5r.net Git - openocd/commitdiff
contrib/openocd.udev: fix warning
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 2 Apr 2012 23:30:11 +0000 (07:30 +0800)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 10 Apr 2012 12:22:59 +0000 (12:22 +0000)
Fix following warning message logged by udev at start

udevd[421]: SYSFS{}= will be removed in a future udev
version, please use ATTR{}= to match the event device,
or ATTRS{}= to match a parent device, in
/etc/udev/rules.d/95-openocd.rules:81

Change-Id: I6de935c13a3327e3d718c110f97d19b9847ceca5
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/552
Tested-by: jenkins
Reviewed-by: Luca Bruno
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
contrib/openocd.udev

index cffab06c0b1142fc21d70402810fc841892fb3cb..71558a97b441067e835f54c65dfd022823849e76 100644 (file)
@@ -78,9 +78,9 @@ ATTRS{idVendor}=="1457", ATTRS{idProduct}=="5118", MODE="644", GROUP="plugdev"
 ATTRS{idVendor}=="0403", ATTRS{idProduct}=="a6d0", MODE="664", GROUP="plugdev"
 
 # stlink v1
-SYSFS{idVendor}=="0483", SYSFS{idProduct}=="3744", MODE="664", GROUP="plugdev"
+ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE="664", GROUP="plugdev"
 
 # stlink v2
-SYSFS{idVendor}=="0483", SYSFS{idProduct}=="3748", MODE="664", GROUP="plugdev"
+ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="664", GROUP="plugdev"
 
 LABEL="openocd_rules_end"