From d02ccef535cbc25801fe8381ff53f39c5bea4102 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Sun, 18 Feb 2007 17:28:44 +0000 Subject: [PATCH] log leveling git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15600 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/register-core/formulacell.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/register/register-core/formulacell.c b/src/register/register-core/formulacell.c index 1728c420a8..251e9a0595 100644 --- a/src/register/register-core/formulacell.c +++ b/src/register/register-core/formulacell.c @@ -31,7 +31,10 @@ #include "basiccell.h" #include "formulacell.h" -static QofLogModule log_module = GNC_MOD_SX; +#define LOG_MOD "gnc.register.core.formulacell" +static QofLogModule log_module = LOG_MOD; +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN LOG_MOD static void gnc_formula_cell_init( FormulaCell *fc ); @@ -82,7 +85,7 @@ void gnc_formula_cell_set_value( FormulaCell *fc, const char *newVal ) { - DEBUG( "Got value \"%s\"", newVal ); + g_debug("got value [%s]", newVal); gnc_formula_cell_set_value_internal( &fc->cell, newVal ); } @@ -93,7 +96,7 @@ gnc_formula_cell_enter( BasicCell *_cell, int *start_selection, int *end_selection ) { - DEBUG( "%d, %d, %d", *cursor_position, *start_selection, *end_selection ); + g_debug("%d, %d, %d", *cursor_position, *start_selection, *end_selection); *cursor_position = -1; *start_selection = 0; *end_selection = -1; @@ -140,9 +143,9 @@ gnc_formula_cell_modify_verify( BasicCell *_cell, const char *c; gunichar uc; - DEBUG( "%s, %d, %s, %d, %d, %d, %d", - (gchar *)change, change_len, (gchar *)newval, newval_len, - *cursor_position, *start_selection, *end_selection ); + g_debug("%s, %d, %s, %d, %d, %d, %d", + (gchar *)change, change_len, (gchar *)newval, newval_len, + *cursor_position, *start_selection, *end_selection); /* accept the newval string if user action was delete */ if (change == NULL) @@ -184,6 +187,6 @@ gnc_formula_cell_set_value_internal( BasicCell *_cell, const char *str ) { FormulaCell *fc = (FormulaCell*)_cell; - DEBUG( "internal string: %s", str ); + g_debug("internal string: [%s]", str); gnc_basic_cell_set_value_internal( &fc->cell, str ); }