Jean Delvare
fa1f1aef32
sensors: Make error messages more helpful and consistent.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4898 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-29 18:11:38 +00:00
Jean Delvare
a269604853
sensors: Print error messages to stderr.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4897 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-29 14:31:07 +00:00
Jean Delvare
2c642d01e1
libsensors: Differentiate between different read error types.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4896 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-29 12:46:36 +00:00
Jean Delvare
301e18b511
libsensors: Notify the caller when writing a value fails.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4895 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-29 11:57:37 +00:00
Jean Delvare
1124e53305
Add a short help text to sensors-conf-convert.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4894 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-26 22:05:47 +00:00
Jean Delvare
4db0f60d9a
Install sensors-conf-convert as part of "make install". Users may need to
...
convert their configuration file after installation, in particular if they
install a distribution package.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4893 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-26 21:52:50 +00:00
Jean Delvare
19b4cf5e37
Fix spurious critical temperature alarm.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4892 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-26 21:28:04 +00:00
Jean Delvare
7a2931c852
V2 -> V3.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4889 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-26 17:17:30 +00:00
Jean Delvare
43e4f551b7
Log the error code on failure, to make it easier to investigate
...
problems.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4888 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-26 17:15:13 +00:00
Jean Delvare
c6e52a0e1e
Now that we use SVN, there are no empty directories to delete.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4885 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-25 16:45:44 +00:00
Jean Delvare
fa561e34c9
Prepare for 3.0.0-rc1 release.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4883 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-25 16:25:41 +00:00
Jean Delvare
015b75888c
The LSM has a new address.
...
Update the LSM record to format 4 (date in ISO8601 format).
Update for release 3.0.0-rc1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4882 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-25 16:22:35 +00:00
Jean Delvare
b43ea0e837
Reset the list of changes for 3.0.0-rc1. So many things changed
...
since 2.10.x that there's little point in keeping the old history
around. Anyone really interested will have to download a 2.10.x
release and look there (or in SVN.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4881 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-25 16:09:57 +00:00
Jean Delvare
6c229f7a3c
Drop SENSORS_ERR_NO_DEVS: we return success, not error, when no device
...
is found.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4879 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 16:34:56 +00:00
Jean Delvare
38d16d299d
Add support for platform devices with no ID.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4878 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 15:22:01 +00:00
Jean Delvare
d4c69b1468
bash should no longer be needed at build time.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4877 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 14:02:01 +00:00
Jean Delvare
bc0cfc7a32
Fold QUICKSTART into INSTALL.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4876 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 13:30:38 +00:00
Jean Delvare
59d4afd8e1
Update for version 3. List the build-time and run-time dependencies.
...
Drop all the instructions regarding kernel modules compilation. Drop
documentation about Makefile variables, they are already documented
in the Makefile itself.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4875 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 13:03:38 +00:00
Jean Delvare
05d5475452
Fold BACKGROUND into README.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4874 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 12:13:29 +00:00
Jean Delvare
08bcb3a5ce
Update README for version 3. Delete the list of supported chips
...
(it depends on the kernel version only). Drop references to I2C and SMBus.
Fold README.directories into README.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4873 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 12:02:36 +00:00
Jean Delvare
a6e9ec9063
Strip for version 3. Ultimately the contents of this file should be
...
folded into README.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4872 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 11:31:37 +00:00
Jean Delvare
01c2d7d046
SENSORS_NO_MAPPING is no longer used, delete it.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4871 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 11:22:24 +00:00
Jean Delvare
ac2c4eb65b
Move lm_sensors.lsm to doc/developers. Users don't really care.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4870 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 10:02:35 +00:00
Jean Delvare
5d8fa82956
Minor update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4868 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:44:48 +00:00
Jean Delvare
55eccd169a
Drop references to makefile targets which no longer exist.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4867 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:44:10 +00:00
Jean Delvare
6f29063fdc
Delete. Most of the items are for kernel drivers, this information no longer
...
belongs there. The rest is hopefully implemented now. Next TODOs will be
handled in trac.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4866 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:27:10 +00:00
Jean Delvare
6270516240
lm-sensors should now be safe to use on Thinkpad laptops.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4865 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:25:07 +00:00
Jean Delvare
b60f5a718e
Update for version 3.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4864 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:15:28 +00:00
Jean Delvare
286c332071
The kernel directory is no more.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4863 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:14:38 +00:00
Jean Delvare
56e301c8b5
Document struct_feature.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4860 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 18:00:20 +00:00
Jean Delvare
55a29cc2ce
Reserve some room in struct sensors_feature for future extension.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4859 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 17:48:57 +00:00
Jean Delvare
d1b374cc38
Renumber feature and subfeature types to leave more room if we later
...
need to add more feature or subfeature types.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4858 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 17:42:27 +00:00
Jean Delvare
df027fb0d5
Drop all references to the MBM website, it's gone now.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4857 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 16:37:51 +00:00
Jean Delvare
55e467b151
Don't arbitrarily write errors to stderr. In production mode,
...
simply ignore the errors. In debug mode, call sensors_fatal_error().
As a side note, there is certainly room for improvement in the way
errors are reported by libsensors. sensors_fatal_error() is fatal,
and sensors_parse_error() is too specific, so we lack a more general
error reporting function. printf-like formatting for error messages
would also be a good idea.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4855 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 14:34:42 +00:00
Jean Delvare
ab36c5b0f8
Delete unused SENSORS_ERR_ACCESS.
...
Rename SENSORS_ERR_PROC to the more neutral SENSORS_ERR_KERNEL.
Introduce SENSORS_ERR_NO_DEVS for finer-grained error reporting.
Use SENSORS_ERR_KERNEL and SENSORS_ERR_NO_DEVS where appropriate.
No error message for invalid error codes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4854 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:53:11 +00:00
Jean Delvare
4b6f9ee727
Better error message if configuration file can't be loaded.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4853 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:48:52 +00:00
Jean Delvare
2fea711456
Alignment.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4852 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:33:32 +00:00
Jean Delvare
06a8d04b5d
Preserve error values returned by sensors_read_sysfs_attr() and
...
sensors_write_sysfs_attr().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4851 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:17:53 +00:00
Jean Delvare
9ba88a7d1f
Better prototype for get_type_scaling().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4850 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:49:47 +00:00
Jean Delvare
c390c9e29f
Hide warnings about unused parameters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4849 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:47:27 +00:00
Jean Delvare
5742812cfe
Hide a warning in flex-generated file.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4848 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:36:56 +00:00
Jean Delvare
9698d82fd3
Rename sensors_get_label_size() to get_label_size() for consistency.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4847 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:33:12 +00:00
Jean Delvare
e01466d993
New public library function: sensors_get_subfeature(). Applications can
...
use it to retrieve a specific subfeature by type. While it is slighly
less efficient than looping over sensors_get_all_subfeatures(), it
often makes the application code much more elegant.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4846 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:30:28 +00:00
Jean Delvare
c08a168342
Use sensors_lookup_chip() wherever possible, it makes the code
...
more readable.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4845 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:24:13 +00:00
Jean Delvare
e55b84392b
Use sensors_lookup_chip() to speed up sensors_lookup_subfeature_name()
...
as well.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4844 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:23:38 +00:00
Jean Delvare
36f5b0dc4d
New internal library function: sensors_lookup_chip(). It looks up a
...
chip in the detected chip list. It is more efficient to do it once
and for all than to do it over and over again in
sensors_lookup_feature_nr() and sensors_lookup_subfeature_nr() as
was done before.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4843 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:23:06 +00:00
Jean Delvare
586cec7fa1
sensors_lookup_subfeature_nr() can now be made static.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4842 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:20:48 +00:00
Jean Delvare
e7c345f4cf
Pass a subfeature structure to sensors_read_sysfs_attr() and
...
sensors_write_sysfs_attr(), rather than a subfeature number, so that
we do not have to lookup the feature number again.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4841 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:20:07 +00:00
Jean Delvare
ba6614624b
There's no rationale for preventing against setting the same
...
subfeature value several times. If the user asks for that, let's just
do it. Otherwise we have a performance penalty for all other users.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4840 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:19:29 +00:00
Jean Delvare
67d3060317
We can plain skip the feature lookup and compute statement search for
...
subfeatures with no compute mapping.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4839 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:18:46 +00:00