changeset 302:c1f75ee307ec

Only display these messages if debug mode is enabled.
author zas_
date Fri, 11 Apr 2008 08:10:40 +0000
parents 8cecb9695d28
children 6ff0bc50ac46
files src/layout_image.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_image.c	Thu Apr 10 19:27:42 2008 +0000
+++ b/src/layout_image.c	Fri Apr 11 08:10:40 2008 +0000
@@ -831,7 +831,7 @@
 		}
 	if (i < MAX_SPLIT_IMAGES)
 		{
-		printf("dnd image activate %d\n", i);
+		if (debug) printf("dnd image activate %d\n", i);
 		layout_image_activate(lw, i);
 		}
 
@@ -911,7 +911,7 @@
 		}
 	if (i < MAX_SPLIT_IMAGES)
 		{
-		printf("dnd get from %d\n", i);
+		if (debug) printf("dnd get from %d\n", i);
 		fd = image_get_fd(lw->split_images[i]);
 		}
 	else