summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-05-30 10:51:52 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-05-30 10:51:52 +0200
commitd178bcd7754ad791cf842114b0da46f8888c99ed (patch)
tree0ff04375333f2e58dd1c66d275953a2b70778b7b /src
parent7b6e7703cdeeecae28552f589f249a6ab7f6c4d2 (diff)
Fix debug output on linux (does not work on win32)
Diffstat (limited to 'src')
-rw-r--r--src/rtp_profile_jpeg.cc15
1 files changed, 8 insertions, 7 deletions
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];