comparison src/exif-common.c @ 495:c7a2471e5c4e

Introduce macros to display debug messages. if (debug) printf(...) is now replaced by variadic macros: DEBUG_1() And for higher debugging levels: DEBUG_2() DEBUG_3() DEBUG_4()
author zas_
date Wed, 23 Apr 2008 20:47:19 +0000
parents 48c8e49b571c
children fc9c8a3e1a8b
comparison
equal deleted inserted replaced
494:3bb9a8df6ee9 495:c7a2471e5c4e
642 g_free(cp_data); 642 g_free(cp_data);
643 return FALSE; 643 return FALSE;
644 } 644 }
645 memcpy(cp_data, data + chunk_offset[i], chunk_length[i]); 645 memcpy(cp_data, data + chunk_offset[i], chunk_length[i]);
646 } 646 }
647 if (debug) printf("Found embedded icc profile in jpeg\n"); 647 DEBUG_1("Found embedded icc profile in jpeg\n");
648 exif_add_jpeg_color_profile(exif, cp_data, cp_length); 648 exif_add_jpeg_color_profile(exif, cp_data, cp_length);
649 649
650 return TRUE; 650 return TRUE;
651 } 651 }
652 652