From d178bcd7754ad791cf842114b0da46f8888c99ed Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 30 May 2014 10:51:52 +0200 Subject: Fix debug output on linux (does not work on win32) --- src/rtp_profile_jpeg.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/rtp_profile_jpeg.cc b/src/rtp_profile_jpeg.cc index c597fe6..a919db4 100644 --- a/src/rtp_profile_jpeg.cc +++ b/src/rtp_profile_jpeg.cc @@ -55,12 +55,12 @@ #endif #if 0 -#define GST_LOG(fmt, ...) printf("\nLOG\t"fmt) -#define GST_WARNING(fmt, ...) printf("\nWARN:\t"fmt) -#define GST_ELEMENT_WARNING(fmt, ...) printf("\nWARN\t"fmt) -#define GST_WARNING_OBJECT(fmt, ...) printf("\nWARN\t"fmt) -#define GST_LOG_OBJECT(fmt, ...) printf("\nLOG:\t"fmt) -#define GST_DEBUG_OBJECT(fmt, ...) printf("\nDEBUG:\t"fmt) +#define GST_LOG(fmt ...) printf("\nLOG\t"fmt) +#define GST_WARNING(fmt ...) printf("\nWARN:\t"fmt) +#define GST_ELEMENT_WARNING(fmt ...) printf("\nWARN\t"fmt) +#define GST_WARNING_OBJECT(fmt ...) printf("\nWARN\t"fmt) +#define GST_LOG_OBJECT(fmt ...) printf("\nLOG:\t"fmt) +#define GST_DEBUG_OBJECT(fmt ...) printf("\nDEBUG:\t"fmt) #else #define GST_LOG(fmt, ...) #define GST_WARNING(fmt, ...) @@ -346,7 +346,8 @@ static unsigned int gst_rtp_jpeg_pay_read_quant_table(const unsigned char *data, if (quant_size < tab_size + 1) goto no_table; - GST_LOG("read quant table %d, tab_size %d, prec %02x", id, tab_size, prec); + GST_LOG("read quant table %d, tab_size %d, prec %02x", + (int)id, (int)tab_size, (unsigned int)prec); tables[id].size = tab_size; tables[id].data = &data[offset + 1]; -- cgit v1.2.3