[gegl] gegl: Improve GEGL_DEBUG_PROCESS output
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: Improve GEGL_DEBUG_PROCESS output
- Date: Sat, 15 May 2010 15:33:07 +0000 (UTC)
commit 83b1bbd10b33e66c8b3aa5e3d77a880dbd529e0d
Author: Martin Nordholts <martinn src gnome org>
Date: Fri May 14 13:21:10 2010 +0200
gegl: Improve GEGL_DEBUG_PROCESS output
Don't have unnecessary \n, and output result_rect in eval-processor.
gegl/process/gegl-eval-visitor.c | 4 +++-
gegl/process/gegl-have-visitor.c | 2 +-
gegl/process/gegl-need-visitor.c | 2 +-
gegl/process/gegl-processor.c | 2 +-
4 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gegl/process/gegl-eval-visitor.c b/gegl/process/gegl-eval-visitor.c
index b72b30d..24a8965 100644
--- a/gegl/process/gegl-eval-visitor.c
+++ b/gegl/process/gegl-eval-visitor.c
@@ -84,7 +84,9 @@ gegl_eval_visitor_visit_pad (GeglVisitor *self,
glong time = gegl_ticks ();
/* Make the operation do it's actual processing */
- GEGL_NOTE (GEGL_DEBUG_PROCESS, "Processing pad '%s' on \"%s\"", gegl_pad_get_name (pad), gegl_node_get_debug_name (node));
+ GEGL_NOTE (GEGL_DEBUG_PROCESS, "For \"%s\" processing pad '%s' result_rect = %d, %d %dÃ?%d",
+ gegl_pad_get_name (pad), gegl_node_get_debug_name (node),
+ context->result_rect.x, context->result_rect.y, context->result_rect.width, context->result_rect.height);
gegl_operation_process (operation, context, gegl_pad_get_name (pad),
&context->result_rect);
time = gegl_ticks () - time;
diff --git a/gegl/process/gegl-have-visitor.c b/gegl/process/gegl-have-visitor.c
index 0d456e7..6c32435 100644
--- a/gegl/process/gegl-have-visitor.c
+++ b/gegl/process/gegl-have-visitor.c
@@ -68,7 +68,7 @@ gegl_have_visitor_visit_node (GeglVisitor *self,
node->have_rect = gegl_operation_get_bounding_box (operation);
GEGL_NOTE (GEGL_DEBUG_PROCESS,
- "For \"%s\" have_rect = %d,%d %dÃ?%d\n",
+ "For \"%s\" have_rect = %d,%d %dÃ?%d",
gegl_node_get_debug_name (node),
node->have_rect.x, node->have_rect.y, node->have_rect.width, node->have_rect.height);
g_mutex_unlock (node->mutex);
diff --git a/gegl/process/gegl-need-visitor.c b/gegl/process/gegl-need-visitor.c
index ba695d0..ff482d1 100644
--- a/gegl/process/gegl-need-visitor.c
+++ b/gegl/process/gegl-need-visitor.c
@@ -72,7 +72,7 @@ gegl_need_visitor_visit_node (GeglVisitor *self,
}
GEGL_NOTE (GEGL_DEBUG_PROCESS,
- "For \"%s\" have_rect = %d, %d %dÃ?%d need_rect = %d, %d %dÃ?%d result_rect = %d, %d %dÃ?%d\n",
+ "For \"%s\" have_rect = %d, %d %dÃ?%d need_rect = %d, %d %dÃ?%d result_rect = %d, %d %dÃ?%d",
gegl_node_get_debug_name (node),
node->have_rect.x, node->have_rect.y, node->have_rect.width, node->have_rect.height,
context->need_rect.x, context->need_rect.y, context->need_rect.width, context->need_rect.height,
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index 538f031..aa6da3b 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -309,7 +309,7 @@ gegl_processor_set_rectangle (GeglProcessor *processor,
rectangle = &input_bounding_box;
}
- GEGL_NOTE (GEGL_DEBUG_PROCESS, "gegl_processor_set_rectangle() node = %s rectangle = %d, %d %dÃ?%d\n",
+ GEGL_NOTE (GEGL_DEBUG_PROCESS, "gegl_processor_set_rectangle() node = %s rectangle = %d, %d %dÃ?%d",
gegl_node_get_debug_name (processor->node),
rectangle->x, rectangle->y, rectangle->width, rectangle->height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]