2019-01-04 00:30:03 +00:00
|
|
|
/* ******************************************************************
|
2020-09-18 19:38:36 +00:00
|
|
|
* debug
|
|
|
|
* Part of FSE library
|
2023-05-22 12:32:14 +00:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2020-09-18 19:38:36 +00:00
|
|
|
*
|
|
|
|
* You can contact the author at :
|
|
|
|
* - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
|
|
|
|
*
|
|
|
|
* This source code is licensed under both the BSD-style license (found in the
|
|
|
|
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
|
|
* in the COPYING file in the root directory of this source tree).
|
|
|
|
* You may select, at your option, one of the above-listed licenses.
|
2019-01-04 00:30:03 +00:00
|
|
|
****************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This module only hosts one global variable
|
|
|
|
* which can be used to dynamically influence the verbosity of traces,
|
|
|
|
* such as DEBUGLOG and RAWLOG
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
|
2024-04-05 09:22:55 +00:00
|
|
|
#if !defined(ZSTD_LINUX_KERNEL) || (DEBUGLEVEL>=2)
|
|
|
|
/* We only use this when DEBUGLEVEL>=2, but we get -Werror=pedantic errors if a
|
|
|
|
* translation unit is empty. So remove this from Linux kernel builds, but
|
|
|
|
* otherwise just leave it in.
|
|
|
|
*/
|
2019-01-04 00:30:03 +00:00
|
|
|
int g_debuglevel = DEBUGLEVEL;
|
2024-04-05 09:22:55 +00:00
|
|
|
#endif
|