diff src/format_raw.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
line wrap: on
line diff
--- a/src/format_raw.c	Wed Apr 23 13:46:18 2008 +0000
+++ b/src/format_raw.c	Wed Apr 23 20:47:19 2008 +0000
@@ -244,7 +244,7 @@
 
 	if (!entry || !entry->func_parse) return FALSE;
 
-	if (debug) printf("RAW using file parser for %s\n", entry->description);
+	DEBUG_1("RAW using file parser for %s\n", entry->description);
 
 	found = entry->func_parse(data, len, &io, &eo);
 
@@ -334,7 +334,7 @@
 
 		if (!match) return FALSE;
 
-		if (debug) printf("RAW file parser extension match\n");
+		DEBUG_1("RAW file parser extension match\n");
 		}
 
 	/* FIXME:
@@ -427,7 +427,7 @@
 
 	if (!entry || !entry->func_parse) return FALSE;
 
-	if (debug) printf("EXIF using makernote parser for %s\n", entry->description);
+	DEBUG_1("EXIF using makernote parser for %s\n", entry->description);
 
 	return entry->func_parse(exif, tiff, offset, size, bo);
 }