aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2008-11-18 16:17:41 +0100
committerghost <andreas.monzner@multimedia-labs.de>2008-11-18 16:17:41 +0100
commit101e31a8ac8bc5dd6712f244356826dc082dc73d (patch)
tree0a4e7d97c6b377616ab2c78b81df62483988b8d8 /lib
parentea644879586a9472041552d84dd7b7ebba29ec3e (diff)
parentd924772eeced2429c007e51ce6dcb50dadec2836 (diff)
downloadenigma2-101e31a8ac8bc5dd6712f244356826dc082dc73d.tar.gz
enigma2-101e31a8ac8bc5dd6712f244356826dc082dc73d.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib')
-rw-r--r--lib/base/eerror.cpp12
-rw-r--r--lib/python/python.cpp16
2 files changed, 15 insertions, 13 deletions
diff --git a/lib/base/eerror.cpp b/lib/base/eerror.cpp
index 1e4d348f..4c4d6551 100644
--- a/lib/base/eerror.cpp
+++ b/lib/base/eerror.cpp
@@ -77,7 +77,7 @@ int logOutputConsole=1;
static pthread_mutex_t DebugLock =
PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP;
-extern void bsodFatal();
+extern void bsodFatal(const char *component);
void eFatal(const char* fmt, ...)
{
@@ -86,10 +86,12 @@ void eFatal(const char* fmt, ...)
va_start(ap, fmt);
vsnprintf(buf, 1024, fmt, ap);
va_end(ap);
- singleLock s(DebugLock);
- logOutput(lvlFatal, "FATAL: " + std::string(buf) + "\n");
- fprintf(stderr, "FATAL: %s\n",buf );
- bsodFatal();
+ {
+ singleLock s(DebugLock);
+ logOutput(lvlFatal, "FATAL: " + std::string(buf) + "\n");
+ fprintf(stderr, "FATAL: %s\n",buf );
+ }
+ bsodFatal("enigma2");
}
#ifdef DEBUG
diff --git a/lib/python/python.cpp b/lib/python/python.cpp
index 50b66103..c5faeed4 100644
--- a/lib/python/python.cpp
+++ b/lib/python/python.cpp
@@ -5,7 +5,7 @@
extern "C" void init_enigma();
extern "C" void eBaseInit(void);
extern "C" void eConsoleInit(void);
-extern void bsodFatal();
+extern void bsodFatal(const char *component);
#define SKIP_PART2
#include <lib/python/python.h>
@@ -44,7 +44,7 @@ ePyObject::operator PyObject*()
if (m_file)
eDebug("last modified in file %s line %d from %d to %d",
m_file, m_line, m_from, m_to);
- bsodFatal();
+ bsodFatal("enigma2, refcnt");
}
return 0;
}
@@ -57,7 +57,7 @@ void ePyObject::incref(const char *file, int line)
if (m_file)
eDebug("last modified in file %s line %d from %d to %d",
m_file, m_line, m_from, m_to);
- bsodFatal();
+ bsodFatal("enigma2, refcnt");
}
if (m_erased || m_ob->ob_refcnt <= 0)
{
@@ -66,7 +66,7 @@ void ePyObject::incref(const char *file, int line)
if (m_file)
eDebug("last modified in file %s line %d from %d to %d",
m_file, m_line, m_from, m_to);
- bsodFatal();
+ bsodFatal("enigma2, refcnt");
}
if (m_ob->ob_refcnt == 0x7FFFFFFF)
{
@@ -75,7 +75,7 @@ void ePyObject::incref(const char *file, int line)
if (m_file)
eDebug("last modified in file %s line %d from %d to %d",
m_file, m_line, m_from, m_to);
- bsodFatal();
+ bsodFatal("enigma2, refcnt");
}
m_file = file;
m_line = line;
@@ -92,7 +92,7 @@ void ePyObject::decref(const char *file, int line)
if (m_file)
eDebug("last modified in file %s line %d from %d to %d",
m_file, m_line, m_from, m_to);
- bsodFatal();
+ bsodFatal("enigma2, refcnt");
}
if (m_erased || m_ob->ob_refcnt <= 0)
{
@@ -101,7 +101,7 @@ void ePyObject::decref(const char *file, int line)
if (m_file)
eDebug("last modified in file %s line %d from %d to %d",
m_file, m_line, m_from, m_to);
- bsodFatal();
+ bsodFatal("enigma2, refcnt");
}
m_file = file;
m_line = line;
@@ -207,7 +207,7 @@ int ePython::call(ePyObject pFunc, ePyObject pArgs)
eDebug("(PyObject_CallObject(%s,%s) failed)", PyString_AS_STRING(FuncStr), PyString_AS_STRING(ArgStr));
Py_DECREF(FuncStr);
Py_DECREF(ArgStr);
- bsodFatal();
+ bsodFatal(0);
}
}
return res;