summaryrefslogtreecommitdiffstats
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Rebase against upstream dmidecode v2.11David Sommerseth2013-07-081-0/+15
| | | | | | This includes an update against the SMBIOS reference specification v2.7.0 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>
* Removed not needed \n from log_append() entriesDavid Sommerseth2010-02-051-1/+1
|
* Added logging flag to log_append() to change log behaviourDavid Sommerseth2010-02-051-6/+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/+10
|
* Moved write_dump() over to dmidump.c, as this is the only user of this functionDavid Sommerseth2010-01-081-36/+0
|
* Removed no longer needed function - is_int()David Sommerseth2009-06-021-9/+0
| | | | | This function did not work as expected and due to the rewrite of xmlpythonizer, this function is not longer needed.
* Completed preliminary reimplementation of type()Nima Talebi2009-05-241-3/+4
| | | | | | | Updated test unit to match. Throw an exception instead of returning None/False in some functions.
* Reimplementing the type() function - WIPNima Talebi2009-05-231-0/+9
|
* Added indenting tool for C code and reindented *.[ch] filesDavid Sommerseth2009-04-291-124/+110
|
* Reverting recent (pointless) change.nima2009-03-311-0/+205
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@180 abc39116-655e-4be6-ad55-d661dc543056
* Preparing to migrate to GIT.nima2009-03-311-205/+0
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@179 abc39116-655e-4be6-ad55-d661dc543056
* Cleaning up source area, ready for debianizing, and rpm after that.nima2008-12-171-0/+205
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@108 abc39116-655e-4be6-ad55-d661dc543056