Better VERBOSE_DEBUG support, remove unneeded printfs.

This commit is contained in:
DragonMinded 2016-01-30 19:41:27 +00:00
parent 1a6f7391ec
commit 997993d432
4 changed files with 5 additions and 4 deletions

View File

@ -121,15 +121,15 @@ void PrintHex( const char * prepend, const unsigned char * const data, int lengt
{ {
if( prepend ) if( prepend )
{ {
printf( "%s", prepend ); verbose_printf( "%s", prepend );
} }
for( int x = 0; x < length; x++ ) 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 ) void PrintInstructions( char * name )

View File

@ -7,6 +7,7 @@
#include "DVDEmu.h" #include "DVDEmu.h"
#include "Video.h" #include "Video.h"
/* Only works if VERBOSE_DEBUG is also enabled in DVDEmu.cpp */
#define PACKET_DEBUG 0 #define PACKET_DEBUG 0
#define PACKET_LEN 256 #define PACKET_LEN 256

View File

@ -6,6 +6,7 @@
#include "Video.h" #include "Video.h"
#include "DVDEmu.h" #include "DVDEmu.h"
/* Only works if VERBOSE_DEBUG is active in DVDEmu.cpp */
#define PACKET_DEBUG 0 #define PACKET_DEBUG 0
/* Wait for serial */ /* Wait for serial */

View File

@ -98,7 +98,6 @@ void *VideoThread( void *state )
{ {
if( private_state->pause_delay ) if( private_state->pause_delay )
{ {
printf("Sleeping %d ms!\n", private_state->pause_delay);
usleep( private_state->pause_delay * 1000 ); usleep( private_state->pause_delay * 1000 );
} }
exec_shell("./control.sh pause 2> /dev/null"); exec_shell("./control.sh pause 2> /dev/null");