mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-30 08:51:11 +02:00
Refactoring debug code
Conflicts: libeplayer3-arm/container/container_ffmpeg.c
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <libavformat/avformat.h>
|
||||
#include "manager.h"
|
||||
#include "common.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* ***************************** */
|
||||
/* Makros/Constants */
|
||||
@@ -34,29 +35,6 @@
|
||||
|
||||
#define TRACKWRAP 20
|
||||
|
||||
//#define SAM_WITH_DEBUG
|
||||
#ifdef SAM_WITH_DEBUG
|
||||
#define AUDIO_MGR_DEBUG
|
||||
#else
|
||||
#define AUDIO_MGR_SILENT
|
||||
#endif
|
||||
|
||||
#ifdef AUDIO_MGR_DEBUG
|
||||
|
||||
static short debug_level = 40;
|
||||
|
||||
#define audio_mgr_printf(level, fmt, x...) do { \
|
||||
if (debug_level >= level) printf("[%s::%s] \n" fmt, __FILE__, __FUNCTION__, ## x); } while (0)
|
||||
#else
|
||||
#define audio_mgr_printf(level, x...)
|
||||
#endif
|
||||
|
||||
#ifndef AUDIO_MGR_SILENT
|
||||
#define audio_mgr_err(x...) do { printf(x); } while (0)
|
||||
#else
|
||||
#define audio_mgr_err(x...)
|
||||
#endif
|
||||
|
||||
/* Error Constants */
|
||||
#define cERR_AUDIO_MGR_NO_ERROR 0
|
||||
#define cERR_AUDIO_MGR_ERROR -1
|
||||
|
Reference in New Issue
Block a user