summaryrefslogtreecommitdiffstats
path: root/src/dmidecode.c
Commit message (Collapse)AuthorAgeFilesLines
* New upstream release v3.12.1v3.12.1David Sommerseth2013-07-081-9/+71
| | | | | | | This includes a rebase against upstream dmidecode v2.12 and an update against the SMBIOS reference specification v2.8.0. Signed-off-by: David Sommerseth <davids@redhat.com>
* Rebase against upstream dmidecode v2.11David Sommerseth2013-07-081-334/+630
| | | | | | This includes an update against the SMBIOS reference specification v2.7.0 Signed-off-by: David Sommerseth <davids@redhat.com>
* Fixed a missing break statement in a switch for DMI section 3.3.7.2David Sommerseth2013-06-201-0/+1
| | | | | | | | This missing break could cause duplicated 'installed' attributes in <InstalledSize/> or <EnabledSize/> XML tags. This is only happening when dmi_memory_module_size() is called and only on some hardware. Signed-off-by: David Sommerseth <davids@redhat.com>
* Do not add explictly 'dmispec' attributes inside switch() in dmi_decode()David Sommerseth2013-04-051-2/+0
| | | | | | | | | | The dmispec attribute is added outside the switch() call, and must not be duplicated. If this happens, an invalid XML file will be generated. (Un)fortunately, libxml2 is quite forgiving to this error. But xmllint will complain about it and other XML libraries (such as python-lxml) may reject such XML data. Signed-off-by: David Sommerseth <davids@redhat.com>
* Harden dmi_string() calls with better NULL checksDavid Sommerseth2011-01-061-7/+16
| | | | | | | | This patch fixes more potential issues where dmi_string() results was not necessarily checked for NULL, which potentially could lead to SEGV issues. Signed-off-by: David Sommerseth <davids@redhat.com>
* Make use of dmixml_AddDMIstring() where possibleDavid Sommerseth2011-01-061-65/+68
| | | | | | | | This modifies the core DMI decoding to make use of the new dmixml_AddDMIstring() function instead of the older, more error prone approach of dmi_string() and dmixml_AddTextChild(). Signed-off-by: David Sommerseth <davids@redhat.com>
* Fixed an issue causing SEGV on some hardware when dmi_processor_id() is calledDavid Sommerseth2010-05-261-2/+1
| | | | | The dmi_processor_id() function did not check the char *version pointer if it was NULL before doing strcmp(). On some hardware, *version will be NULL.
* Add a little hint where decoding got abortedDavid Sommerseth2010-04-201-2/+2
|
* Improved DMIerror message tag when decoding is not possibleDavid Sommerseth2010-02-051-6/+16
| | | | Plus some minor code style clean up
* Removed not needed \n from log_append() entriesDavid Sommerseth2010-02-051-3/+3
|
* Added logging flag to log_append() to change log behaviourDavid Sommerseth2010-02-051-5/+6
| | | | | | | | | | | | | | Valid flags are: * LOGFL_NORMAL Log all messages to the log context, and send log message to stderr on errors * LOGFL_NODUPS Log only unique messages. Duplicated messages will be removed * LOGFL_NOSTDERR Don't write to stderr, even if errors occur
* More fprintf() -> log_append() portingDavid Sommerseth2010-01-081-12/+12
|
* Spelling fixesNima Talebi2009-12-141-1/+1
| | | | Thanks Lintian! You're a champ!
* Completed python XML map for TypeMap 0x1CDavid Sommerseth2009-07-021-1/+1
|
* Completed python XML map for TypeMap 0x16David Sommerseth2009-07-021-1/+1
|
* Completed python XML map for TypeMap 0x06David Sommerseth2009-07-021-2/+2
|
* Completed python XML map for TypeMap 0x05David Sommerseth2009-07-021-7/+8
|
* Splitted out SMBIOS/DMI dump functions from dmidecode.c to separate filesDavid Sommerseth2009-06-181-162/+2
|
* Fixed another XML formatting error in dmidecode.cDavid Sommerseth2009-06-121-1/+1
|
* Fixed an XML formatting issue - dmispec attribute was duplicated in <OEMstrings>David Sommerseth2009-06-111-1/+0
|
* Renamed <description> to <DMIdescription> to avoid confusion with the ↵David Sommerseth2009-06-111-1/+1
| | | | <Description> tag
* Fixed crashes and unexpected behaviour on unknown DMI/SMBIOS typesDavid Sommerseth2009-06-111-18/+47
| | | | | Also provide more useful information, both on unsupported types and types not found on the hardware
* Fixed error in XML data for dmi_temperature_probe_location(...)David Sommerseth2009-06-111-1/+1
|
* Big rewrite again, simplified the usage of opt->typeDavid Sommerseth2009-06-091-5/+6
| | | | | | Instead of building up an u8 array with 255 cells where we only use one cell at the time now, just pass the type id value as an int the whole way through.
* More cleanupDavid Sommerseth2009-06-041-17/+0
|
* Fixed compiling issues after commit 2cf4f28f6fc671478003b31c03b93e070eee9942David Sommerseth2009-06-041-3/+1
| | | | Also cleaned up a little bit more, removed more unneeded stuff.
* Further removal of deprecated functionsNima Talebi2009-06-051-59/+6
| | | | | | | Removed the `dmi_table_string' function, and `const struct string_keyword *string' from the `options' struct. Also modified the function calls that are now free of this, namely, `legacy_decode' and `smbios_decode'.
* Avoid passing the option struct to dmidecode.c functionsDavid Sommerseth2009-06-041-18/+24
|
* Removal of more deprecated/unused code.Nima Talebi2009-06-041-1/+0
|
* Rewrote bigger parts to avoid global variables as much as possibleDavid Sommerseth2009-06-031-23/+23
|
* Removed some dead codeDavid Sommerseth2009-06-031-1/+0
|
* Renamed *_set_version() functions to a more proper *_get_version() function ↵David Sommerseth2009-06-031-2/+2
| | | | | | | | names Also changed dmiMAP_ParseMappingXML(...) to dmiMAP_ParseMappingXML_GroupName(...). In the dmidecode_get(...) function. This is just a quick fix for making it compile. It's also needed to implement usage of dmiMAP_ParseMappingXML_TypeID(...) as well.
* More cleanupNima Talebi2009-05-231-0/+6
| | | | | | | | | Don't write to stdout unless in debug mode (with respect to writing to memory devices. Added the xml datafile to setup (distutils). Updated test case (incorporating color and cleaning up tests).
* Fixed minor bug which prevented debug buildsNima Talebi2009-05-231-2/+2
|
* Reversioned, relicensed, and rejiggedNima Talebi2009-05-221-34/+42
| | | | | | | | | | | The version is of now, v3.10.6. The version major field has been upped due to the newly added XML functionality. The version has been reverted to GPLv2. Some headers have been cleaned up, copyright notices added etc. Credits given where due.
* Update copyright noticeNima Talebi2009-05-221-6/+3
|
* Changed the node content of /dmidecode/ProcessorInfo/CPUCore/cpu_flags/flag ↵David Sommerseth2009-05-201-30/+30
| | | | | | | to maintain backwards compatibility The old python-dmidecode uses the format '{flag} ({description})'. This format is now used is well as contents for the cpu_flags/flag text nodes.
* Use correct index value for ↵David Sommerseth2009-05-201-1/+1
| | | | /dmidecode/SystemSlots/SlotCharacteristics/Characteristic/@index
* Fixed some errors in the XML layout on CacheInfoDavid Sommerseth2009-05-201-3/+3
|
* Fixed some ugly, unattractive and unhealthy codeNima Talebi2009-05-201-12/+0
| | | | | These hangover lines must have crept in at the early stages of the initial conversion of dmidecode to python-dmidecode. Fixed.
* Reorganised attributes in SystemSlots tagDavid Sommerseth2009-05-151-6/+43
| | | | | | This part of the XML result was not valid due to duplicated tag attributes. Moved some of this specifications from the SystemSlots tag to its own SlotID tag, with even more details.
* Fixed some errors in decoding "3.3.5.9 Processor Characteristics"David Sommerseth2009-05-151-2/+1
| | | | Fixes regression in parsing introduced when rewriting dmidecode to use libxml2
* Remove 'ns' from the speed_ns attribute in memory sectionDavid Sommerseth2009-05-141-1/+1
|
* Mark CPU as Populated = 'No' when not presentDavid Sommerseth2009-05-131-1/+1
|
* Add all CPU flags, and mark them as available or notDavid Sommerseth2009-05-131-2/+4
| | | | This is to preserve backwards compatibility
* Corrected minor errors in ProcessorInfo XML tagsDavid Sommerseth2009-05-131-2/+3
|
* Began completing the rewrite of needed dmidecodemodule changesDavid Sommerseth2009-04-301-25/+30
|
* dmidecode: Moved ROMsize size unit into tag attributeDavid Sommerseth2009-04-291-1/+3
|
* More XML cleanupDavid Sommerseth2009-04-291-11/+9
|
* Cleaned up the XML dataDavid Sommerseth2009-04-291-329/+32
|