Jean Delvare
2ea3bf392b
Make it possible to skip building of the static library. Just run:
...
make BUILD_STATIC_LIB=0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5711 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 09:18:06 +00:00
Jean Delvare
e0ad43a545
Include generated source files in dependency checking.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5710 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 08:42:11 +00:00
Jean Delvare
3e78f8323b
Use geteuid instead of getuid so that setuid bit works.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5709 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-19 07:16:40 +00:00
Jean Delvare
7fd91785d4
Add National Semiconductor LM95241 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5708 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-06 17:05:54 +00:00
Jean Delvare
f7464553bd
Add Nuvoton W83795G/ADG detection. Original patch from Wei Song (Nuvoton).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5684 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-13 08:41:19 +00:00
Jean Delvare
f0492a9095
Refactor dmidecode version check into a separate function.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5683 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 17:15:13 +00:00
Jean Delvare
d7d67ccf14
Strip stray backslash.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5682 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 16:47:11 +00:00
Jean Delvare
3fce211736
Use dmidecode to find IPMI interfaces if available. This is required
...
if non-standard address or register width are used. And anyway it is
always better to avoid access to random I/O ports.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5681 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 16:44:27 +00:00
Jean Delvare
046c76d4a0
Differentiate between PC8374L and WPCD377I. Both chips have the same
...
device ID so we use the revision register to differentiate between
them, using custom detection functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5680 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-11 21:44:32 +00:00
Andre Prendel
3a002f7487
sensord: Remove leading whitespaces in empty lines.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5679 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-10 10:37:41 +00:00
Andre Prendel
e065e827e9
Convert coding style in prog/sensord/ from gnu to kernel style.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5678 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-09 15:32:03 +00:00
Jean Delvare
531a6416f2
Display the base I/O address of Super-I/O logical device if it is
...
set, even it the logical device in question is disabled.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5677 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-06 09:44:17 +00:00
Jean Delvare
3dc6983a84
Don't use variables when they hurt readability more than they help.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5676 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-05 15:20:41 +00:00
Jean Delvare
163cbc2bb7
Add nNidia nForce MCP78S SMBus detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5675 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-05 09:04:55 +00:00
Andre Prendel
a03ec09359
Use __func__ in sensors_fatal_error() to get function name.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5674 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-02 13:07:23 +00:00
Jean Delvare
9d0552984c
Post-release version update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5673 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-01 12:04:23 +00:00
Jean Delvare
edcfa23f50
Update branch reference.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5671 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 21:00:51 +00:00
Jean Delvare
b9a0b8511f
Prepare for release.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5669 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 20:55:15 +00:00
Jean Delvare
1141a165ee
Create pid file only after successful initialization.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5668 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 19:42:51 +00:00
Jean Delvare
45446011ec
Exit if configuration file can't be read.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5667 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 19:38:22 +00:00
Jean Delvare
144191432b
Map the W83667HG chip to the w83627ehf driver. Support should be
...
available starting with kernel 2.6.30.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5666 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-26 16:15:04 +00:00
Jean Delvare
c7eab7030f
Fix segmentation fault when passing a custom configuration file.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5665 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-26 14:46:47 +00:00
Andre Prendel
857d25dff4
Create /etc/sensors.d directory during installation. Patch from Gabriel C.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5664 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-26 10:03:23 +00:00
Jean Delvare
0ffa44331c
Set library version to 4.1.0.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5663 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-25 07:47:13 +00:00
Jean Delvare
8925971f3a
Update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5662 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-25 07:46:14 +00:00
Jean Delvare
c1a066a307
If str(n)dup fails, there is no more memory left. We should exit with
...
"Out of memory". Patch from Andre Prendel.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5661 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-20 10:56:52 +00:00
Jean Delvare
0bc948ca6a
Add detection of Winbond WPCD377I (no sensors).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5660 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-19 12:41:05 +00:00
Hans de Goede
244c34b5a7
adjust scan_i2c_adapter() for FSC probe workaround
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5659 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 21:25:04 +00:00
Hans de Goede
4ca6104c35
sensors-detect: Add detection of FSC Hades and Syleus IC's
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5658 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 20:31:49 +00:00
Hans de Goede
a7ad8ad9cc
sensors-detect: Add a special case for probing i2c address 0x73 for FSC chips,
...
as at least the Syleus locks up with our regular probe code. Note that to our
current knowledge only FSC chips live on this address, and for them
this probe method is safe.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5657 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 20:26:20 +00:00
Jean Delvare
680d5515f6
It is not an error if /etc/sensors.d doesn't exist.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5656 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 10:17:13 +00:00
Jean Delvare
0d394245dc
Update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5655 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:49:24 +00:00
Jean Delvare
cba60674e5
Document error-related functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5654 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:47:33 +00:00
Jean Delvare
5d30872044
Document function sensors_snprintf_chip_name.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5653 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:46:13 +00:00
Jean Delvare
42beaab3fc
Reorder description section to match synopsis order. Move structure
...
definitions to their own subsection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5652 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:45:36 +00:00
Jean Delvare
fa3d63daeb
Reformat description section.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5651 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:43:36 +00:00
Jean Delvare
e8ff9211ff
Reformat synopsis section.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5650 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:42:43 +00:00
Jean Delvare
0efe346b80
Include the configuration file name when reporting parse errors.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5649 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:26:57 +00:00
Jean Delvare
6a7286464d
Keep track of configuration file names so that we can later generate
...
better error reports.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5648 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:24:31 +00:00
Jean Delvare
e4ee28d5c8
Read extra configuration files from /etc/sensors.d.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5647 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:22:38 +00:00
Jean Delvare
3ea4545611
Make it possible to only substitute the bus number of a subset of the
...
chip entries. This is a prerequisite to add support for multiple
configuration files. Each configuration file can come with its own bus
statements and the bus number substitution should only affect chip
entries from the same configuration file.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5646 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:19:03 +00:00
Jean Delvare
d5bead6025
Free bus statements from the configuration file as soon as we are done
...
with them.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5645 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:18:01 +00:00
Jean Delvare
16dbc995ec
Exit the configuration file parser as soon as we are done with it.
...
This makes the peak memory consumption significantly lower (-15% using
"sensors" in my tests).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5644 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:15:31 +00:00
Jean Delvare
15218a5e02
Mention the stand-alone nature of sensors-detect, as suggested by
...
Matt Roberds.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5643 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-14 09:10:41 +00:00
Jean Delvare
b5ec572a5f
Spelling fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5642 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-12 16:21:34 +00:00
Jean Delvare
e97c534ebb
Typo.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5640 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-12 13:13:24 +00:00
Jean Delvare
30499dc899
Fix inclusion of general.h.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5639 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-11 10:12:45 +00:00
Jean Delvare
ea0cfbeadf
Report configuration file read errors.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5638 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-10 20:50:16 +00:00
Jean Delvare
556b03e425
Fix memory leak in scanner when using flex 2.5.9 or later.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5637 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-08 12:00:24 +00:00
Jean Delvare
09abbcb686
When looking for hwmon device attributes, skip non-file sysfs entries.
...
This speeds things up a little. Patch from Andre Prendel.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5636 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-06 13:14:36 +00:00