mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-03 07:45:30 +00:00
Let the user know that eeprom support is going away soon.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3311 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -3311,7 +3311,7 @@ void print_eeprom(const sensors_chip_name *name)
|
|||||||
if (!sensors_get_label_and_valid(*name, SENSORS_EEPROM_VAIO_NAME, &label, &valid)
|
if (!sensors_get_label_and_valid(*name, SENSORS_EEPROM_VAIO_NAME, &label, &valid)
|
||||||
&& valid) {
|
&& valid) {
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
if (!sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME+i, &a))
|
if (!sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME+i, &a))
|
||||||
buffer[i] = (char) a;
|
buffer[i] = (char) a;
|
||||||
if (strncmp(buffer, "PCG-", 4) == 0
|
if (strncmp(buffer, "PCG-", 4) == 0
|
||||||
|| strncmp(buffer, "VGN-", 4) == 0) {
|
|| strncmp(buffer, "VGN-", 4) == 0) {
|
||||||
@@ -3338,6 +3338,9 @@ void print_eeprom(const sensors_chip_name *name)
|
|||||||
printf("ERROR: data Vaio 3\n");
|
printf("ERROR: data Vaio 3\n");
|
||||||
free(label);
|
free(label);
|
||||||
|
|
||||||
|
printf("Note that eeprom support will be dropped from "
|
||||||
|
"libsensors soon.\nPlease use the decode-vaio.pl "
|
||||||
|
"script instead.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
@@ -3353,7 +3356,7 @@ void print_eeprom(const sensors_chip_name *name)
|
|||||||
if (!sensors_get_label_and_valid(*name, SENSORS_EEPROM_SHUTTLE, &label, &valid)
|
if (!sensors_get_label_and_valid(*name, SENSORS_EEPROM_SHUTTLE, &label, &valid)
|
||||||
&& valid) {
|
&& valid) {
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
if (!sensors_get_feature(*name, SENSORS_EEPROM_SHUTTLE+i, &a))
|
if (!sensors_get_feature(*name, SENSORS_EEPROM_SHUTTLE+i, &a))
|
||||||
buffer[i] = (unsigned char) a;
|
buffer[i] = (unsigned char) a;
|
||||||
if (buffer[0] == 0x00
|
if (buffer[0] == 0x00
|
||||||
&& buffer[1] == 0x30
|
&& buffer[1] == 0x30
|
||||||
@@ -3361,7 +3364,7 @@ void print_eeprom(const sensors_chip_name *name)
|
|||||||
{
|
{
|
||||||
/* must be a real Shuttle EEPROM */
|
/* must be a real Shuttle EEPROM */
|
||||||
for (i = 4; i < 6; i++)
|
for (i = 4; i < 6; i++)
|
||||||
if (!sensors_get_feature(*name, SENSORS_EEPROM_SHUTTLE+i, &a))
|
if (!sensors_get_feature(*name, SENSORS_EEPROM_SHUTTLE+i, &a))
|
||||||
buffer[i] = (unsigned char) a;
|
buffer[i] = (unsigned char) a;
|
||||||
|
|
||||||
print_label(label, 24);
|
print_label(label, 24);
|
||||||
@@ -3471,6 +3474,10 @@ void print_eeprom(const sensors_chip_name *name)
|
|||||||
} else
|
} else
|
||||||
printf("ERROR: data 2\n");
|
printf("ERROR: data 2\n");
|
||||||
free(label);
|
free(label);
|
||||||
|
|
||||||
|
printf("Note that eeprom support will be dropped from "
|
||||||
|
"libsensors soon.\nPlease use the decode-dimms.pl "
|
||||||
|
"script instead.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_it87(const sensors_chip_name *name)
|
void print_it87(const sensors_chip_name *name)
|
||||||
|
Reference in New Issue
Block a user