more compact trace output

This commit is contained in:
John Cupitt 2014-01-08 13:07:56 +00:00
parent cc8e06db0b
commit 72271dae6d

View File

@ -692,8 +692,7 @@ vips_cache_operation_buildp( VipsOperation **operation )
if( (hit = g_hash_table_lookup( vips_cache_table, *operation )) ) { if( (hit = g_hash_table_lookup( vips_cache_table, *operation )) ) {
if( vips__cache_trace ) { if( vips__cache_trace ) {
printf( "vips cache: found old operation\n" ); printf( "vips cache-: " );
printf( "\t" );
vips_object_print_summary( VIPS_OBJECT( hit ) ); vips_object_print_summary( VIPS_OBJECT( hit ) );
} }
@ -716,10 +715,9 @@ vips_cache_operation_buildp( VipsOperation **operation )
if( vips__cache_trace ) { if( vips__cache_trace ) {
if( vips_operation_get_flags( *operation ) & if( vips_operation_get_flags( *operation ) &
VIPS_OPERATION_NOCACHE ) VIPS_OPERATION_NOCACHE )
printf( "vips cache: uncacheable\n" ); printf( "vips cache : " );
else else
printf( "vips cache: caching new operation\n" ); printf( "vips cache+: " );
printf( "\t" );
vips_object_print_summary( VIPS_OBJECT( *operation ) ); vips_object_print_summary( VIPS_OBJECT( *operation ) );
} }