1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2 /* ******************************************************************
3  * debug
4  * Part of FSE library
5  * Copyright (c) Meta Platforms, Inc. and affiliates.
6  *
7  * You can contact the author at :
8  * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
9  *
10  * This source code is licensed under both the BSD-style license (found in the
11  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
12  * in the COPYING file in the root directory of this source tree).
13  * You may select, at your option, one of the above-listed licenses.
14 ****************************************************************** */
15 
16 
17 /*
18  * This module only hosts one global variable
19  * which can be used to dynamically influence the verbosity of traces,
20  * such as DEBUGLOG and RAWLOG
21  */
22 
23 #include "debug.h"
24 
25 #if (DEBUGLEVEL>=2)
26 /* We only use this when DEBUGLEVEL>=2, but we get -Werror=pedantic errors if a
27  * translation unit is empty. So remove this from Linux kernel builds, but
28  * otherwise just leave it in.
29  */
30 int g_debuglevel = DEBUGLEVEL;
31 #endif
32