From 3d72c879701ada1b6e70bf95aa84d993a88c10b4 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 26 May 2006 15:33:57 +0000 Subject: [PATCH] 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 --- prog/sensors/chips.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index c4293281..699bbfc8 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -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) && valid) { 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; if (strncmp(buffer, "PCG-", 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"); free(label); + printf("Note that eeprom support will be dropped from " + "libsensors soon.\nPlease use the decode-vaio.pl " + "script instead.\n"); return; } } 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) && valid) { 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; if (buffer[0] == 0x00 && buffer[1] == 0x30 @@ -3361,7 +3364,7 @@ void print_eeprom(const sensors_chip_name *name) { /* must be a real Shuttle EEPROM */ 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; print_label(label, 24); @@ -3471,6 +3474,10 @@ void print_eeprom(const sensors_chip_name *name) } else printf("ERROR: data 2\n"); 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)