summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clean-up some branch differencesHEADmasterDavid Sommerseth2015-06-081-1/+1
|\ | | | | | | Signed-off-by: David Sommerseth <davids@redhat.com>
| * Fix silly typoDavid Sommerseth2015-02-041-1/+1
| | | | | | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* | New upstream release (v3.12.2)v3.12.2Nima Talebi2015-06-082-2/+5
| |
* | House-keeping around generated .pyc files in sourceNima Talebi2015-06-082-0/+2
|/
* Fix failing dmidecode.pythonmap() on Python 3David Sommerseth2015-02-031-3/+8
| | | | | | | | | | Python 3 uses the Unicode type for strings but it did only support the Bytes type. So the loading of XML-to-Python-dict-map would fail. This patch preserves the Bytes type support while adding Unicode support, which is what is done other places in the code as well. Signed-off-by: David Sommerseth <davids@redhat.com>
* Port to Python 3 while maintaining compatibility with Python >= 2.6Slavek Kabrda2015-02-039-98/+179
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Fix typo in pymap.xml - "Relase Date" -> "Release Date"David Sommerseth2013-08-121-1/+1
| | | | | | | | | | | | Thanks to Daniel Mueller for spotting this typo. Unfortunately this fix may break some code if it depends on the "Relase Date" key name. The alternative would be to provide both the old and wrong key name together with the new one, but this particular key was not considered critically enough for special treatment. Signed-off-by: David Sommerseth <davids@redhat.com>
* New upstream release v3.12.1v3.12.1David Sommerseth2013-07-086-15/+90
| | | | | | | 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-088-383/+728
| | | | | | This includes an update against the SMBIOS reference specification v2.7.0 Signed-off-by: David Sommerseth <davids@redhat.com>
* New upstream release (v3.10.15)v3.10.15David Sommerseth2013-07-032-2/+5
| | | | 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>
* New upstream release (v3.10.14)v3.10.14David Sommerseth2013-04-052-2/+5
| | | | 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-063-10/+28
| | | | | | | | 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>
* Implemented dmixml_AddDMIstring()David Sommerseth2011-01-062-0/+43
| | | | | | | | | This function can be used instead of dmi_string() and dmixml_AddTextChild(). In those cases where dmi_string() returns NULL, this situation is handled more gracefully. In addition of also handling "not specified" situations better as well. Signed-off-by: David Sommerseth <davids@redhat.com>
* Add SIGILL catcher in mem_chunk()David Sommerseth2010-10-271-14/+53
| | | | | | | | | | | | On some s390x systems under heavy memory load seems to trigger a SIGILL event when calling memcpy(). To avoid this issue, which basically leads to the complete script to core dump, a signal handler was implemented to add tackle such siutations more gracefully. The SIGILL event should now be logged as well, to be able to see that this happened. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Merge remote branch 'origin/master'v3.10.13Nima Talebi2010-06-030-0/+0
|\ | | | | | | | | Conflicts: debian/changelog
| * Added missing dependencyNima Talebi2010-04-232-2/+9
| |
* | New upstream release - v3.10.13Nima Talebi2010-06-033-2/+11
| |
* | Added missing dependencyv3.10.12Nima Talebi2010-06-032-2/+9
| |
* | 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.
* v3.10.12 in light of recent bugfix releaseNima Talebi2010-03-124-2/+14
| | | | Also, switch to dpkg-source 3.0 (quilt) format.
* Merge branch 'master' of git.autonomy.net.au:python-dmidecodeNima Talebi2010-04-200-0/+0
|\
| * Small fix to sample file based on report on mailing listNima Talebi2010-03-041-0/+6
| |
* | Small fix to sample file based on report on mailing listNima Talebi2010-04-201-0/+6
| |
* | Allow format strings to be NULL in dmixml_Add*() functionsDavid Sommerseth2010-04-201-5/+19
| | | | | | | | | | | | | | | | | | | | | | This bug was reported by Jan Hutaƙ <jhutar@redhat.com> [1] The implemented fix avoids assertions if the format strings to dmixml_AddAttribute(), dmixml_AddTextChild() and dmixml_AddTextContent() functions are NULL. In these cases, it will result in an empty value instead of returning NULL from these functions. [1] <https://bugzilla.redhat.com/show_bug.cgi?id=583867>
* | Add a little hint where decoding got abortedDavid Sommerseth2010-04-201-2/+2
| |
* | Removed not needed duplicationDavid Sommerseth2010-03-041-4/+0
| |
* | Clarify one comment, where API presence is tested.David Sommerseth2010-03-041-1/+5
| |
* | Use %{_prefix} instead of hard coding /usr in setup.py --prefixDavid Sommerseth2010-03-041-1/+1
| |
* | RPM spec: Install into /usr instead of /usr/localMichael Brown2010-03-041-1/+1
|/ | | | | | On OpenSuSE, the default 'setup.py install' installs to /usr/local Added --prefix=/usr to setup.py install command in the RPM spec so rpmbuild picks up the correct files.
* Updated examples/dmidump.py to be more up-to-date against a lot of new featuresDavid Sommerseth2010-03-021-39/+164
| | | | | | | | Rewrote bigger parts to be more intelligent, checking for warnings on the way. Added more warnings if script is run as a non-root user, and made it work as non-root user if a dmidata.dump file exists (created when run as root). Added examples with the XML API as well.
* Fix licensing problem, all now on GPLv2+Nima Talebi2010-02-262-5/+37
|
* Preparing Debian releaseNima Talebi2010-02-161-1/+1
|
* New feature release (log handling)v3.10.11Nima Talebi2010-02-163-2/+13
|
* Merge branch 'master' of git.autonomy.net.au:python-dmidecodeNima Talebi2010-02-160-0/+0
|\
| * New upstream release (v3.10.10)v3.10.10Nima Talebi2010-01-123-6/+16
| |
* | New upstream release (v3.10.10)Nima Talebi2010-02-163-6/+16
| |
* | 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-056-14/+14
| |
* | Added logging flag to log_append() to change log behaviourDavid Sommerseth2010-02-058-65/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Ported fprintf() -> log_append() on XML functionsDavid Sommerseth2010-01-085-63/+74
| |
* | Update Python build rulesDavid Sommerseth2010-01-082-0/+2
| |
* | Port dmidump to use the new log APIDavid Sommerseth2010-01-082-6/+6
| | | | | | | | | | | | This port will not create a new log buffer (Log_t), but log_append() will print errors to stderr in this case, as the log buffer pointer is NULL.
* | More fprintf() -> log_append() portingDavid Sommerseth2010-01-087-34/+36
| |
* | Implement a global log buffer and start porting fprint() -> log_append()David Sommerseth2010-01-082-24/+75
| |
* | Don't print false error warning if logp == NULLDavid Sommerseth2010-01-081-1/+7
| |
* | Added a new log APIDavid Sommerseth2010-01-082-0/+266
|/
* Moved write_dump() over to dmidump.c, as this is the only user of this functionDavid Sommerseth2010-01-082-36/+38
|