mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-28 16:01:22 +02:00
Refactoring debug code
Conflicts: libeplayer3-arm/container/container_ffmpeg.c
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include "manager.h"
|
||||
#include "common.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* ***************************** */
|
||||
/* Makros/Constants */
|
||||
@@ -33,30 +34,6 @@
|
||||
|
||||
#define TRACKWRAP 20
|
||||
|
||||
//#define SAM_WITH_DEBUG
|
||||
#ifdef SAM_WITH_DEBUG
|
||||
#define SUBTITLE_MGR_DEBUG
|
||||
#else
|
||||
#define SUBTITLE_MGR_SILENT
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef SUBTITLE_MGR_DEBUG
|
||||
|
||||
static short debug_level = 20;
|
||||
|
||||
#define subtitle_mgr_printf(level, x...) do { \
|
||||
if (debug_level >= level) printf(x); } while (0)
|
||||
#else
|
||||
#define subtitle_mgr_printf(level, x...)
|
||||
#endif
|
||||
|
||||
#ifndef SUBTITLE_MGR_SILENT
|
||||
#define subtitle_mgr_err(x...) do { printf(x); } while (0)
|
||||
#else
|
||||
#define subtitle_mgr_err(x...)
|
||||
#endif
|
||||
|
||||
/* Error Constants */
|
||||
#define cERR_SUBTITLE_MGR_NO_ERROR 0
|
||||
#define cERR_SUBTITLE_MGR_ERROR -1
|
||||
|
Reference in New Issue
Block a user