diff src/exiv2.cc @ 673:fbebf5cf4a55

Do not use printf() directly but use new wrapper function log_printf() instead.
author zas_
date Fri, 16 May 2008 12:16:49 +0000
parents 913eb0ba99a6
children 3a4a7385997c
line wrap: on
line diff
--- a/src/exiv2.cc	Fri May 16 12:08:51 2008 +0000
+++ b/src/exiv2.cc	Fri May 16 12:16:49 2008 +0000
@@ -710,7 +710,7 @@
 {
 	if (map_data && munmap(map_data, map_len) == -1)
 		{
-		printf("Failed to unmap file \n");
+		log_printf("Failed to unmap file \n");
 		}
 }
 
@@ -782,7 +782,7 @@
 		*image_offset = offset;
 		if ((unsigned long) lseek(fd, *image_offset, SEEK_SET) != *image_offset)
 			{
-			printf("Failed to seek to embedded image\n");
+			log_printf("Failed to seek to embedded image\n");
 
 			*image_offset = 0;
 			if (*exif_offset) *exif_offset = 0;