debug.c 1.1 KB

12345678910111213141516171819202122232425262728293031
  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. * This module only hosts one global variable
  17. * which can be used to dynamically influence the verbosity of traces,
  18. * such as DEBUGLOG and RAWLOG
  19. */
  20. #include "debug.h"
  21. #if (DEBUGLEVEL>=2)
  22. /* We only use this when DEBUGLEVEL>=2, but we get -Werror=pedantic errors if a
  23. * translation unit is empty. So remove this from Linux kernel builds, but
  24. * otherwise just leave it in.
  25. */
  26. int g_debuglevel = DEBUGLEVEL;
  27. #endif