e76131
diff -up dmidecode-2.12/CHANGELOG.smbios_fix dmidecode-2.12/CHANGELOG
e76131
--- dmidecode-2.12/CHANGELOG.smbios_fix	2013-05-09 09:44:35.668592078 +0200
e76131
+++ dmidecode-2.12/CHANGELOG	2013-05-09 09:44:44.742610559 +0200
e76131
@@ -1,3 +1,10 @@
e76131
+2013-04-24  Jean Delvare  <khali@linux-fr.org>
e76131
+
e76131
+	* dmidecode.c: Strip trailig zeroes from memory voltage values
e76131
+	  (DMI type 17).
e76131
+	* dmidecode.c: Fix support for new processor upgrade types (DMI
e76131
+	  type 4) and new memory device type (DMI type 17.)
e76131
+
e76131
 2013-04-17  Anton Arapov  <anton@redhat.com>
e76131
 
e76131
 	Update to support SMBIOS specification version 2.8.0.
e76131
diff -up dmidecode-2.12/dmidecode.c.smbios_fix dmidecode-2.12/dmidecode.c
e76131
--- dmidecode-2.12/dmidecode.c.smbios_fix	2013-05-09 09:44:26.404573273 +0200
e76131
+++ dmidecode-2.12/dmidecode.c	2013-05-09 09:44:44.745610565 +0200
e76131
@@ -69,7 +69,7 @@
e76131
 #define out_of_spec "<OUT OF SPEC>"
e76131
 static const char *bad_index = "<BAD INDEX>";
e76131
 
e76131
-#define SUPPORTED_SMBIOS_VER 0x0207
e76131
+#define SUPPORTED_SMBIOS_VER 0x0208
e76131
 
e76131
 /*
e76131
  * Type-independant Stuff
e76131
@@ -712,7 +712,6 @@ static const char *dmi_processor_family(
e76131
 		{ 0x3D, "Opteron 6200" },
e76131
 		{ 0x3E, "Opteron 4200" },
e76131
 		{ 0x3F, "FX" },
e76131
-
e76131
 		{ 0x40, "MIPS" },
e76131
 		{ 0x41, "MIPS R4000" },
e76131
 		{ 0x42, "MIPS R4200" },
e76131
@@ -729,7 +728,6 @@ static const char *dmi_processor_family(
e76131
 		{ 0x4D, "Opteron 6300" },
e76131
 		{ 0x4E, "Opteron 3300" },
e76131
 		{ 0x4F, "FirePro" },
e76131
-
e76131
 		{ 0x50, "SPARC" },
e76131
 		{ 0x51, "SuperSPARC" },
e76131
 		{ 0x52, "MicroSPARC II" },
e76131
@@ -1176,7 +1174,7 @@ static const char *dmi_processor_upgrade
e76131
 		"Socket LGA1356-3" /* 0x2C */
e76131
 	};
e76131
 
e76131
-	if (code >= 0x01 && code <= 0x2A)
e76131
+	if (code >= 0x01 && code <= 0x2C)
e76131
 		return upgrade[code - 0x01];
e76131
 	return out_of_spec;
e76131
 }
e76131
@@ -2236,7 +2234,7 @@ static void dmi_memory_voltage_value(u16
e76131
 	if (code == 0)
e76131
 		printf(" Unknown");
e76131
 	else
e76131
-		printf(" %.3f V", (float)(i16)code / 1000);
e76131
+		printf(code % 100 ? " %g V" : " %.1f V", (float)code / 1000);
e76131
 }
e76131
 
e76131
 static const char *dmi_memory_device_form_factor(u8 code)
e76131
@@ -2338,7 +2336,7 @@ static void dmi_memory_device_type_detai
e76131
 	{
e76131
 		int i;
e76131
 
e76131
-		for (i = 1; i <= 14; i++)
e76131
+		for (i = 1; i <= 15; i++)
e76131
 			if (code & (1 << i))
e76131
 				printf(" %s", detail[i - 1]);
e76131
 	}
e76131
@@ -3657,13 +3655,13 @@ static void dmi_decode(const struct dmi_
e76131
 			dmi_memory_device_speed(WORD(data + 0x20));
e76131
 			printf("\n");
e76131
 			if (h->length < 0x28) break;
e76131
-			printf("\tMinimum voltage: ");
e76131
+			printf("\tMinimum Voltage: ");
e76131
 			dmi_memory_voltage_value(WORD(data + 0x22));
e76131
 			printf("\n");
e76131
-			printf("\tMaximum voltage: ");
e76131
+			printf("\tMaximum Voltage: ");
e76131
 			dmi_memory_voltage_value(WORD(data + 0x24));
e76131
 			printf("\n");
e76131
-			printf("\tConfigured voltage: ");
e76131
+			printf("\tConfigured Voltage: ");
e76131
 			dmi_memory_voltage_value(WORD(data + 0x26));
e76131
 			printf("\n");
e76131
 			break;