summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-04-29 18:28:02 +0200
committerDavid Sommerseth <davids@redhat.com>2009-04-29 18:28:02 +0200
commita3047723df9b66b6a56bcc72a469a129bbaf4d54 (patch)
tree06c8add4def1efc2e377c602590a250ab2a9a4ba /src
parent6a89cde8f253cb9826da4287007a869de99709a6 (diff)
downloadpython-dmidecode-a3047723df9b66b6a56bcc72a469a129bbaf4d54.tar.gz
python-dmidecode-a3047723df9b66b6a56bcc72a469a129bbaf4d54.tar.xz
python-dmidecode-a3047723df9b66b6a56bcc72a469a129bbaf4d54.zip
dmidecode: Moved ROMsize size unit into tag attribute
Diffstat (limited to 'src')
-rw-r--r--src/dmidecode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c
index 1087df2..491183d 100644
--- a/src/dmidecode.c
+++ b/src/dmidecode.c
@@ -3681,7 +3681,9 @@ xmlNode *dmi_decode(struct dmi_header * h, u16 ver)
dmi_bios_runtime_size(sect_n, (0x10000 - WORD(data + 0x06)) << 4);
}
- dmixml_AddTextChild(sect_n, "ROMsize", "%i KB", (data[0x09] + 1) << 6);
+ sub_n = dmixml_AddTextChild(sect_n, "ROMsize", "%i", (data[0x09] + 1) << 6);
+ dmixml_AddAttribute(sub_n, "unit", "KB");
+ sub_n = NULL;
sub_n = xmlNewChild(sect_n, NULL, (xmlChar *) "Characteristics", NULL);
assert( sub_n != NULL );