From 997993d432cfae5d1979beb8e58c65390601ebb8 Mon Sep 17 00:00:00 2001 From: DragonMinded Date: Sat, 30 Jan 2016 19:41:27 +0000 Subject: [PATCH] Better VERBOSE_DEBUG support, remove unneeded printfs. --- DVDEmu.cpp | 6 +++--- Toshiba_SD-B100.cpp | 1 + Victor_XV-D701.cpp | 1 + Video.cpp | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DVDEmu.cpp b/DVDEmu.cpp index 8a2a9e2..f0e30e7 100644 --- a/DVDEmu.cpp +++ b/DVDEmu.cpp @@ -121,15 +121,15 @@ void PrintHex( const char * prepend, const unsigned char * const data, int lengt { if( prepend ) { - printf( "%s", prepend ); + verbose_printf( "%s", prepend ); } for( int x = 0; x < length; x++ ) { - printf( "%02X ", data[x] ); + verbose_printf( "%02X ", data[x] ); } - printf( " (Length: %d bytes)\n", length ); + verbose_printf( " (Length: %d bytes)\n", length ); } void PrintInstructions( char * name ) diff --git a/Toshiba_SD-B100.cpp b/Toshiba_SD-B100.cpp index 9f820a4..9854fe9 100644 --- a/Toshiba_SD-B100.cpp +++ b/Toshiba_SD-B100.cpp @@ -7,6 +7,7 @@ #include "DVDEmu.h" #include "Video.h" +/* Only works if VERBOSE_DEBUG is also enabled in DVDEmu.cpp */ #define PACKET_DEBUG 0 #define PACKET_LEN 256 diff --git a/Victor_XV-D701.cpp b/Victor_XV-D701.cpp index 4433fc1..6f15c39 100644 --- a/Victor_XV-D701.cpp +++ b/Victor_XV-D701.cpp @@ -6,6 +6,7 @@ #include "Video.h" #include "DVDEmu.h" +/* Only works if VERBOSE_DEBUG is active in DVDEmu.cpp */ #define PACKET_DEBUG 0 /* Wait for serial */ diff --git a/Video.cpp b/Video.cpp index ab12a34..63b5871 100644 --- a/Video.cpp +++ b/Video.cpp @@ -98,7 +98,6 @@ void *VideoThread( void *state ) { if( private_state->pause_delay ) { - printf("Sleeping %d ms!\n", private_state->pause_delay); usleep( private_state->pause_delay * 1000 ); } exec_shell("./control.sh pause 2> /dev/null");