Chameleon

View r1925_errorHandle.diff

1Index: smbios.c
2===================================================================
3--- smbios.c(revision 1925)
4+++ smbios.c(working copy)
5@@ -245,6 +245,8 @@
6 getSMBMemoryDeviceSerialNumber,NULL},
7
8 {kSMBTypeMemoryDevice,kSMBString,getFieldOffset(SMBMemoryDevice, assetTag),NULL,NULL,NULL},
9+{kSMBTypeMemoryDevice,kSMBWord,getFieldOffset(SMBMemoryDevice, errorHandle),NULL,
10+getSMBMemoryDeviceMemoryErrorHandle,NULL},
11
12 {kSMBTypeMemoryDevice,kSMBString,getFieldOffset(SMBMemoryDevice, partNumber),kSMBMemoryDevicePartNumberKey,
13 getSMBMemoryDevicePartNumber,NULL},
14Index: smbios_getters.c
15===================================================================
16--- smbios_getters.c(revision 1925)
17+++ smbios_getters.c(working copy)
18@@ -229,6 +229,12 @@
19 //return true;
20 }
21
22+bool getSMBMemoryDeviceMemoryErrorHandle(returnType *value)
23+{
24+value->word = 0xFFFF;
25+return true;
26+}
27+
28 bool getSMBMemoryDeviceMemorySpeed(returnType *value)
29 {
30 static int idx = -1;
31Index: smbios_getters.h
32===================================================================
33--- smbios_getters.h(revision 1925)
34+++ smbios_getters.h(working copy)
35@@ -33,6 +33,7 @@
36 extern bool getSMBOemProcessorBusSpeed(returnType *value);
37 extern bool getSMBOemProcessorType(returnType *value);
38 extern bool getSMBMemoryDeviceMemoryType(returnType *value);
39+extern bool getSMBMemoryDeviceMemoryErrorHandle(returnType *value);
40 extern bool getSMBMemoryDeviceMemorySpeed(returnType *value);
41 extern bool getSMBMemoryDeviceManufacturer(returnType *value);
42 extern bool getSMBMemoryDeviceSerialNumber(returnType *value);
43Index: smbios_decode.c
44===================================================================
45--- smbios_decode.c(revision 1925)
46+++ smbios_decode.c(working copy)
47@@ -165,6 +165,7 @@
48 if (minorVersion < 3 || structHeader->header.length < 27)
49 return;
50 DBG("\tmemorySpeed: %dMHz\n", structHeader->memorySpeed);
51+DBG("\terrorHandle: %x\n", structHeader->errorHandle);
52 DBG("\tmanufacturer: %s\n", getSMBStringForField((SMBStructHeader *)structHeader, structHeader->manufacturer));
53 DBG("\tserialNumber: %s\n", getSMBStringForField((SMBStructHeader *)structHeader, structHeader->serialNumber));
54 DBG("\tassetTag: %s\n", getSMBStringForField((SMBStructHeader *)structHeader, structHeader->assetTag));
55

Archive Download this file

Attachment to issue 59

Created: 7 years 9 months ago by Geoff Seeley