Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170659 Details for
Bug 245459
sys-apps/lm_sensors-2.10.7 not always reading sensors on recent 2.6 kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
lm_sensors_2_read.patch
lm_sensors_2_read.patch (text/plain), 1007 bytes, created by
Matthew Stapleton
on 2008-11-04 00:47:55 UTC
(
hide
)
Description:
lm_sensors_2_read.patch
Filename:
MIME Type:
Creator:
Matthew Stapleton
Created:
2008-11-04 00:47:55 UTC
Size:
1007 bytes
patch
obsolete
>diff -Naur lm_sensors-2.10.7/lib/init.c lm_sensors-2.10.7-2/lib/init.c >--- lm_sensors-2.10.7/lib/init.c 2008-07-02 04:23:06.000000000 +1000 >+++ lm_sensors-2.10.7-2/lib/init.c 2008-10-24 10:24:32.000000000 +1000 >@@ -67,14 +67,26 @@ > > int sensors_init(FILE *input) > { >- int res; >+ int res, res2; > sensors_cleanup(); > if (sensors_init_sysfs()) { >- if ((res = sensors_read_sysfs_bus()) || (res = sensors_read_sysfs_chips())) >- return res; >+ res = sensors_read_sysfs_bus(); >+ res2 = sensors_read_sysfs_chips(); >+ if (res && res2) { >+ if (res) >+ return res; >+ if (res2) >+ return res2; >+ } > } else { >- if ((res = sensors_read_proc_bus()) || (res = sensors_read_proc_chips())) >- return res; >+ res = sensors_read_proc_bus(); >+ res2 = sensors_read_proc_chips(); >+ if (res && res2) { >+ if (res) >+ return res; >+ if (res2) >+ return res2; >+ } > } > if ((res = sensors_scanner_init(input))) > return -SENSORS_ERR_PARSE;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245459
: 170659