From 559c10e91af05b846355156a439ce873d8e241e3 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 5 Jun 2014 16:31:04 +0200 Subject: COMMON: Don't allow debug channel 'all' to be used. --- common/debug.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/debug.cpp b/common/debug.cpp index b8c345e4f0..182b28afdf 100644 --- a/common/debug.cpp +++ b/common/debug.cpp @@ -46,6 +46,11 @@ struct DebugLevelComperator { } // end of anonymous namespace bool DebugManager::addDebugChannel(uint32 channel, const String &name, const String &description) { + if (name.equalsIgnoreCase("all")) { + warning("Debug channel 'all' is reserved for internal use"); + return false; + } + if (gDebugChannels.contains(name)) warning("Duplicate declaration of engine debug channel '%s'", name.c_str()); -- cgit v1.2.3