summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-05-19 16:39:10 +0200
committerDavid Sommerseth <davids@redhat.com>2009-05-20 14:19:58 +0200
commit5900424cc4a3ba70b79a6f2c31cf2d738b4e0217 (patch)
treead486ca937dbf8ff65828c0b7e171d66d84b6b4e
parent2ab1ede583c1dc2e9a81c20c80dc882964dde9a1 (diff)
downloadpython-dmidecode-5900424cc4a3ba70b79a6f2c31cf2d738b4e0217.tar.gz
python-dmidecode-5900424cc4a3ba70b79a6f2c31cf2d738b4e0217.tar.xz
python-dmidecode-5900424cc4a3ba70b79a6f2c31cf2d738b4e0217.zip
Use correct index value for /dmidecode/SystemSlots/SlotCharacteristics/Characteristic/@index
-rw-r--r--src/dmidecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c
index e507689..6cee5cf 100644
--- a/src/dmidecode.c
+++ b/src/dmidecode.c
@@ -2051,7 +2051,7 @@ void dmi_slot_characteristics(xmlNode *node, u8 code1, u8 code2)
if(code2 & (1 << i)) {
xmlNode *c_n = dmixml_AddTextChild(data_n, "Characteristic", "%s",
characteristics2[i]);
- dmixml_AddAttribute(c_n, "index", "%i", i);
+ dmixml_AddAttribute(c_n, "index", "%i", i+8);
c_n = NULL;
}
}