From c4a5831238f0257e58a0d5307c0df6b515bc2a1f Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 2 Mar 2012 14:14:09 +0000 Subject: [PATCH] make it easy to remove some print stuff --- libvips/iofuncs/object.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libvips/iofuncs/object.c b/libvips/iofuncs/object.c index d529b94a..c6513932 100644 --- a/libvips/iofuncs/object.c +++ b/libvips/iofuncs/object.c @@ -917,15 +917,19 @@ vips_object_set_property( GObject *gobject, } #ifdef DEBUG + printf( "vips_object_set_property: " ); + vips_object_print_name( object ); + printf( ".%s\n", g_param_spec_get_name( pspec ) ); + + /* This can crash horribly with some values, have it as a separate + * chunk so we can easily commenmt it out. + */ { char *str_value; str_value = g_strdup_value_contents( value ); - printf( "vips_object_set_property: " ); - vips_object_print_name( object ); - printf( ".%s = %s\n", g_param_spec_get_name( pspec ), str_value ); + printf( "\t%s\n", str_value ); g_free( str_value ); - } #endif /*DEBUG*/