]> mj.ucw.cz Git - pciutils.git/commit
Sysfs: Read failures of optional attributes are not fatal
authorMartin Mares <mj@ucw.cz>
Mon, 14 Sep 2015 15:43:04 +0000 (17:43 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 14 Sep 2015 15:43:04 +0000 (17:43 +0200)
commite5bb28afa6124b26cd25506892214a5d3cb9eb60
treea4b45754b5a7cf9fbdb96a09a7c8bc27056c5bd8
parent9c876849817e54e897aa37851ddfe7caf0af2ef5
Sysfs: Read failures of optional attributes are not fatal

Ameya Palande reported that with some kernels, reads of such
attributes fail on some hardware. He suggested to ignore read
failures completely, but I decided to turn the errors into
warnings in such cases. At least, the user will know that something
fishy is going on.
lib/sysfs.c