add FATAL: before error messages
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 13 Nov 2007 11:58:31 +0000 (11:58 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 13 Nov 2007 11:58:31 +0000 (11:58 +0000)
lib/base/eerror.cpp

index 8766f5e..4093d01 100644 (file)
@@ -84,7 +84,7 @@ void eFatal(const char* fmt, ...)
        vsnprintf(buf, 1024, fmt, ap);
        va_end(ap);
        singleLock s(DebugLock);
        vsnprintf(buf, 1024, fmt, ap);
        va_end(ap);
        singleLock s(DebugLock);
-       logOutput(lvlFatal, buf);
+       logOutput(lvlFatal, "FATAL: " + std::string(buf) + "\n");
        fprintf(stderr, "FATAL: %s\n",buf );
        bsodFatal();
 }
        fprintf(stderr, "FATAL: %s\n",buf );
        bsodFatal();
 }