2020-02-08 13:56:59 +00:00
|
|
|
/* ******************************************************************
|
2020-06-04 19:03:27 +00:00
|
|
|
* debug
|
|
|
|
* Part of FSE library
|
2023-02-10 19:25:40 +00:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2020-06-04 19:03:27 +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.
|
2020-02-08 13:56:59 +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-05-31 15:13:52 +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.
|
|
|
|
*/
|
2020-02-08 13:56:59 +00:00
|
|
|
int g_debuglevel = DEBUGLEVEL;
|
2024-05-31 15:13:52 +00:00
|
|
|
#endif
|