summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-08-06 04:26:45 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-08-06 04:26:45 +0000
commit538d307f94bb761f6e56bbecfc2146bd1cf3fdc7 (patch)
treeccb304ff0a3861e29d364e11658dfb68faeec870
parentc979fb48a97fd7a40cf024120ac8457405a937fd (diff)
downloadpython-dmidecode-538d307f94bb761f6e56bbecfc2146bd1cf3fdc7.tar.gz
python-dmidecode-538d307f94bb761f6e56bbecfc2146bd1cf3fdc7.tar.xz
python-dmidecode-538d307f94bb761f6e56bbecfc2146bd1cf3fdc7.zip
Cleanup.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@35 abc39116-655e-4be6-ad55-d661dc543056
-rw-r--r--dmidecode.c3
-rwxr-xr-xexample.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/dmidecode.c b/dmidecode.c
index ed798a9..30d6d42 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -3178,6 +3178,9 @@ void dmi_decode(struct dmi_header *h, u16 ver, PyObject* pydata) {
break;
case 7: /* 3.3.8 Cache Information */
+ NEW_METHOD = 1;
+ caseData = dmi_on_board_devices(h);
+
if(h->length<0x0F) break;
_val = dmi_string_py(h, data[0x04]);
PyDict_SetItemString(caseData, "Socket Designation", _val);
diff --git a/example.py b/example.py
index 76d1cf2..2689c5a 100755
--- a/example.py
+++ b/example.py
@@ -13,7 +13,7 @@ import dmidecode, time
#print "*** system ***\n", l(dmidecode.system())
#print "*** baseboard ***\n", l(dmidecode.baseboard())
#print "*** chassis ***\n", l(dmidecode.chassis())
-print "*** processor ***\n", l(dmidecode.processor())
+#print "*** processor ***\n", l(dmidecode.processor())
#print "*** memory ***\n", l(dmidecode.memory())
#print "*** cache ***\n", l(dmidecode.cache())
#print "*** connector ***\n", l(dmidecode.connector())