diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-01-29 17:46:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-30 03:41:48 +0100 |
commit | 9ef5a9deaf0f4f44a19efa5bd75df74873096063 (patch) | |
tree | c24d5f9102f0b194554be80892b7e8838ed98ba8 /libavutil | |
parent | 4592c85fc888ed32df2486c04914286f403c3a80 (diff) | |
download | ffmpeg-9ef5a9deaf0f4f44a19efa5bd75df74873096063.tar.gz |
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 7 | ||||
-rw-r--r-- | libavutil/log.h | 11 |
2 files changed, 11 insertions, 7 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 9c4ba7e60c..748a823ac4 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -114,13 +114,6 @@ /* debug stuff */ -/* dprintf macros */ -#ifdef DEBUG -# define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) -#else -# define dprintf(pctx, ...) -#endif - #define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) /* math */ diff --git a/libavutil/log.h b/libavutil/log.h index 3b364bed24..0bcf2c4982 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -136,6 +136,17 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); const char* av_default_item_name(void* ctx); /** + * av_dlog macros + * Useful to print debug messages that shouldn't get compiled in normally. + */ + +#ifdef DEBUG +# define av_dlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) +#else +# define av_dlog(pctx, ...) +#endif + +/** * Skip repeated messages, this requires the user app to use av_log() instead of * (f)printf as the 2 would otherwise interfere and lead to * "Last message repeated x times" messages below (f)printf messages with some |