mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
Add a new function to libsensors doing the opposite of
sensors_parse_chip_name(). sensors_snprintf_chip_name() converts a chip name from its internal representation to a human readable string. So far, each user program had to reimplement this function. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4676 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
493d9b27f5
commit
edb42b3c16
7 files changed
+37
-14
No files matched your search
+1
-1
@@ -133,7 +133,7 @@ sensors_lookup_feature_name(const sensors_chip_name *chip, const char *feature)
|
||||
/* Check whether the chip name is an 'absolute' name, which can only match
|
||||
one chip, or whether it has wildcards. Returns 0 if it is absolute, 1
|
||||
if there are wildcards. */
|
||||
static int sensors_chip_name_has_wildcards(const sensors_chip_name *chip)
|
||||
int sensors_chip_name_has_wildcards(const sensors_chip_name *chip)
|
||||
{
|
||||
if ((chip->prefix == SENSORS_CHIP_NAME_PREFIX_ANY) ||
|
||||
(chip->bus == SENSORS_CHIP_NAME_BUS_ANY) ||
|
||||
|
||||
Reference in new issue
Block a user