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