From f5f1a29f31505ee09749dec9d2c2109edcb814b6 Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 18 Nov 2016 00:35:30 +0800 Subject: [PATCH] Change printf to LOG_MESSAGE_SIMPLE --- apps/openmw-mp/Script/Functions/Chat.cpp | 2 +- apps/openmw-mp/Utils.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/Chat.cpp b/apps/openmw-mp/Script/Functions/Chat.cpp index 3ae58e9ab..4f97e89c3 100644 --- a/apps/openmw-mp/Script/Functions/Chat.cpp +++ b/apps/openmw-mp/Script/Functions/Chat.cpp @@ -13,7 +13,7 @@ void ScriptFunctions::SendMessage(unsigned short pid, const char *message, bool *player->ChatMessage() = message; - DEBUG_PRINTF("System: %s", message); + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "System: %s", message); mwmp::Networking::get().getPlayerController()->GetPacket(ID_CHAT_MESSAGE)->Send(player, false); if (broadcast) diff --git a/apps/openmw-mp/Utils.hpp b/apps/openmw-mp/Utils.hpp index 4db60d5a4..526fbf2e2 100644 --- a/apps/openmw-mp/Utils.hpp +++ b/apps/openmw-mp/Utils.hpp @@ -10,7 +10,7 @@ #include #if (!defined(DEBUG_PRINTF) && defined(DEBUG)) -#define DEBUG_PRINTF printf +#define DEBUG_PRINTF(...) LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, __VA_ARGS__) #else #define DEBUG_PRINTF(...) #endif