git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small lcd cosmetics
[enigma2.git]
/
lib
/
base
/
eerror.cpp
diff --git
a/lib/base/eerror.cpp
b/lib/base/eerror.cpp
index 2182df49cd252bcddda810783cca571141ee0212..8766f5ec48b5dba927305dcc7c4eb6457bc4bdf7 100644
(file)
--- a/
lib/base/eerror.cpp
+++ b/
lib/base/eerror.cpp
@@
-69,11
+69,13
@@
void DumpUnfreed()
#endif
Signal2<void, int, const std::string&> logOutput;
#endif
Signal2<void, int, const std::string&> logOutput;
-int logOutputConsole=
0
;
+int logOutputConsole=
1
;
static pthread_mutex_t DebugLock =
PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP;
static pthread_mutex_t DebugLock =
PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP;
+extern void bsodFatal();
+
void eFatal(const char* fmt, ...)
{
char buf[1024];
void eFatal(const char* fmt, ...)
{
char buf[1024];
@@
-84,7
+86,7
@@
void eFatal(const char* fmt, ...)
singleLock s(DebugLock);
logOutput(lvlFatal, buf);
fprintf(stderr, "FATAL: %s\n",buf );
singleLock s(DebugLock);
logOutput(lvlFatal, buf);
fprintf(stderr, "FATAL: %s\n",buf );
-
_exit(0
);
+
bsodFatal(
);
}
#ifdef DEBUG
}
#ifdef DEBUG
@@
-126,15
+128,17
@@
void eWarning(const char* fmt, ...)
if (logOutputConsole)
fprintf(stderr, "%s\n", buf);
}
if (logOutputConsole)
fprintf(stderr, "%s\n", buf);
}
+#endif // DEBUG
void ePythonOutput(const char *string)
{
void ePythonOutput(const char *string)
{
+#ifdef DEBUG
singleLock s(DebugLock);
logOutput(lvlWarning, string);
if (logOutputConsole)
fwrite(string, 1, strlen(string), stderr);
singleLock s(DebugLock);
logOutput(lvlWarning, string);
if (logOutputConsole)
fwrite(string, 1, strlen(string), stderr);
+#endif
}
}
-#endif // DEBUG
void eWriteCrashdump()
{
void eWriteCrashdump()
{