aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-09 21:04:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-09 21:04:10 +0000
commit7a26da44b0f24ca33be642dd9af8fdf7f89656c4 (patch)
tree4cfc9eeb1ccd6b1a50468f8f6a82c03446a30cc1
parente1249ba92ff6c3618ceb3dfb8fcb014b520794c2 (diff)
downloadffmpeg-7a26da44b0f24ca33be642dd9af8fdf7f89656c4.tar.gz
get rid of printf
Originally committed as revision 10033 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/nutdec.c6
-rw-r--r--libavformat/nutenc.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 3143f384d0..c6b2a6fd1c 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -76,21 +76,21 @@ static uint64_t get_fourcc(ByteIOContext *bc){
static inline uint64_t get_v_trace(ByteIOContext *bc, char *file, char *func, int line){
uint64_t v= get_v(bc);
- printf("get_v %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
+ av_log(NULL, AV_LOG_DEBUG, "get_v %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
return v;
}
static inline int64_t get_s_trace(ByteIOContext *bc, char *file, char *func, int line){
int64_t v= get_s(bc);
- printf("get_s %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
+ av_log(NULL, AV_LOG_DEBUG, "get_s %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
return v;
}
static inline uint64_t get_vb_trace(ByteIOContext *bc, char *file, char *func, int line){
uint64_t v= get_vb(bc);
- printf("get_vb %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
+ av_log(NULL, AV_LOG_DEBUG, "get_vb %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
return v;
}
#define get_v(bc) get_v_trace(bc, __FILE__, __PRETTY_FUNCTION__, __LINE__)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 0efb22358a..5f65eda8e4 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -176,13 +176,13 @@ static void put_s(ByteIOContext *bc, int64_t val){
#ifdef TRACE
static inline void put_v_trace(ByteIOContext *bc, uint64_t v, char *file, char *func, int line){
- printf("get_v %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
+ av_log(NULL, AV_LOG_DEBUG, "put_v %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
put_v(bc, v);
}
static inline void put_s_trace(ByteIOContext *bc, int64_t v, char *file, char *func, int line){
- printf("get_s %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
+ av_log(NULL, AV_LOG_DEBUG, "put_s %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
put_s(bc, v);
}