From eec3fec094eeedeb0abd9c7bb919a22f50b5d4bb Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sat, 29 Jul 2006 13:23:56 +0000 Subject: [PATCH] simplify PRINT_KEY Originally committed as revision 5850 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mxf.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 2032fce324..8c5351b8dc 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -163,14 +163,8 @@ static const uint8_t mxf_essence_element_key[] = { 0x06,0x0e,0x2b,0x #define IS_KLV_KEY(x, y) (!memcmp(x, y, sizeof(y))) -#define PRINT_KEY(x) \ -do { \ - int iterpk; \ - for (iterpk = 0; iterpk < 16; iterpk++) { \ - av_log(NULL, AV_LOG_DEBUG, "%02X ", x[iterpk]); \ - } \ - av_log(NULL, AV_LOG_DEBUG, "\n"); \ -} while (0); \ +#define PRINT_KEY(x) dprintf("%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X\n", \ + x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9], x[10], x[11], x[12], x[13], x[14], x[15]) static int64_t klv_decode_ber_length(ByteIOContext *pb) {