From 55ab150bd82743c78891f28d12d50179851f561f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 17 Jan 2007 06:49:40 +0000 Subject: [PATCH] Changed [SOURCEMOD] to [SM] --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40312 --- core/CDbgReporter.cpp | 14 +++++++------- core/CLogger.cpp | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/CDbgReporter.cpp b/core/CDbgReporter.cpp index 7a02fb10..0a0d1dcf 100644 --- a/core/CDbgReporter.cpp +++ b/core/CDbgReporter.cpp @@ -15,7 +15,7 @@ void CDbgReporter::OnContextExecuteError(IPluginContext *ctx, IContextTrace *err if (n_err != SP_ERROR_NATIVE) { - g_Logger.LogError("[SOURCEMOD] Plugin \"%s\" encountered error %d: %s", + g_Logger.LogError("[SM] Plugin \"%s\" encountered error %d: %s", plname, n_err, error->GetErrorString()); @@ -26,26 +26,26 @@ void CDbgReporter::OnContextExecuteError(IPluginContext *ctx, IContextTrace *err const char *custerr; if ((custerr=error->GetCustomErrorString()) != NULL) { - g_Logger.LogError("[SOURCEMOD] Native \"%s\" reported: \"%s\"", lastname, custerr); + g_Logger.LogError("[SM] Native \"%s\" reported: \"%s\"", lastname, custerr); } else { - g_Logger.LogError("[SOURCEMOD] Native \"%s\" encountered a generic error.", lastname); + g_Logger.LogError("[SM] Native \"%s\" encountered a generic error.", lastname); } } if (!error->DebugInfoAvailable()) { - g_Logger.LogError("[SOURCEMOD] Debug mode is not enabled for this plugin."); - g_Logger.LogError("[SOURCEMOD] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug %d on", + g_Logger.LogError("[SM] Debug mode is not enabled for this plugin."); + g_Logger.LogError("[SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug %d on", _GetPluginIndex(ctx)); return; } CallStackInfo stk_info; int i = 0; - g_Logger.LogError("[SOURCEMOD] Displaying call stack trace:"); + g_Logger.LogError("[SM] Displaying call stack trace:"); while (error->GetTraceInfo(&stk_info)) { - g_Logger.LogError("[SOURCEMOD] [%d] Line %d, %s::%s()", + g_Logger.LogError("[SM] [%d] Line %d, %s::%s()", i++, stk_info.line, stk_info.filename, diff --git a/core/CLogger.cpp b/core/CLogger.cpp index fe96469d..1c2bb2bb 100644 --- a/core/CLogger.cpp +++ b/core/CLogger.cpp @@ -48,7 +48,7 @@ void CLogger::_NewMapFile() FILE *fp = fopen(m_NrmFileName.c_str(), "w"); if (!fp) { - g_SMAPI->ConPrint("[SOURCEMOD] Unexpected fatal logging error. SourceMod logging disabled.\n"); + g_SMAPI->ConPrint("[SM] Unexpected fatal logging error. SourceMod logging disabled.\n"); m_Active = false; return; } else { @@ -207,7 +207,7 @@ void CLogger::LogMessage(const char *vafmt, ...) g_SMAPI->ConPrintf("L %s: %s\n", date, msg); return; print_error: - g_SMAPI->ConPrint("[SOURCEMOD] Unexpected fatal logging error. SourceMod logging disabled.\n"); + g_SMAPI->ConPrint("[SM] Unexpected fatal logging error. SourceMod logging disabled.\n"); m_Active = false; } @@ -252,7 +252,7 @@ void CLogger::LogError(const char *vafmt, ...) fprintf(fp, "L %s: %s\n", date, msg); fclose(fp); } else { - g_SMAPI->ConPrint("[SOURCEMOD] Unexpected fatal logging error. SourceMod logging disabled.\n"); + g_SMAPI->ConPrint("[SM] Unexpected fatal logging error. SourceMod logging disabled.\n"); m_Active = false; return; }