diff --git a/common/debug.cpp b/common/debug.cpp index 132fd949eb2..2b76fd52cea 100644 --- a/common/debug.cpp +++ b/common/debug.cpp @@ -32,6 +32,11 @@ int gDebugLevel = -1; bool gDebugChannelsOnly = false; +const DebugChannelDef gDebugChannels[] = { + { kDebugLevelEventRec, "eventrec", "Event recorder debug level" }, + { kDebugGlobalDetection, "detection", "debug messages for advancedDetector" }, + DEBUG_CHANNEL_END +}; namespace Common { DECLARE_SINGLETON(DebugManager); diff --git a/common/debug.h b/common/debug.h index 5ba1bf1c8ea..c85f5a03713 100644 --- a/common/debug.h +++ b/common/debug.h @@ -166,11 +166,7 @@ enum GlobalDebugLevels { kDebugLevelEventRec = 1 << 30 }; -static const DebugChannelDef gDebugChannels[] = { - {kDebugLevelEventRec, "EventRec", "Event recorder debug level"}, - {kDebugGlobalDetection, "Detection", "debug messages for advancedDetector"}, - DEBUG_CHANNEL_END -}; +extern const DebugChannelDef gDebugChannels[]; /** @} */