[grisbi-cvs] [SCM] grisbi branch, master, updated. 260553a50a86f27acaa5b8091f955967ba106e12

Gunee guneemwelloeux at users.sourceforge.net
Wed Jun 2 22:41:37 CEST 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  260553a50a86f27acaa5b8091f955967ba106e12 (commit)
      from  588a03ea3cc844e1065b65c5e9617c33f74beefc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 260553a50a86f27acaa5b8091f955967ba106e12
Author: William OLLIVIER <guneemwelloeux at users.sourceforge.net>
Date:   Wed Jun 2 22:40:15 2010 +0200

    Added CPU time information in debug functions
    
    Call clock() to get the CPU time, for more accurate timestamping

-----------------------------------------------------------------------

Changes:
diff --git a/src/erreur.c b/src/erreur.c
index 48fd4ec..954505f 100644
--- a/src/erreur.c
+++ b/src/erreur.c
@@ -280,12 +280,12 @@ G_MODULE_EXPORT extern void debug_message_string ( gchar *prefixe, gchar * file,
 
 	/* on affiche dans la console le message */
 	if (message)
-	    tmpstr = g_strdup_printf(_("%s : %s - %s:%d:%s - %s\n"),
-				     get_debug_time (), prefixe,
+	    tmpstr = g_strdup_printf(_("%s, %d : %s - %s:%d:%s - %s\n"),
+				     get_debug_time (), clock(), prefixe,
 				     file, line, function, message);
 	else
-	    tmpstr = g_strdup_printf(_("%s : %s - %s:%d:%s\n"),
-				     get_debug_time (), prefixe,
+	    tmpstr = g_strdup_printf(_("%s, %d : %s - %s:%d:%s\n"),
+				     get_debug_time (), clock(), prefixe,
 				     file, line, function);
 
 	if (etat.debug_mode)
@@ -322,8 +322,8 @@ extern void debug_message_int ( gchar *prefixe, gchar * file, gint line, const c
     if ( ( debugging_grisbi && level <= debugging_grisbi) || force_debug_display || etat.debug_mode) 
     {
 	/* on affiche dans la console le message */
-	gchar* tmpstr = g_strdup_printf(_("%s : %s - %s:%d:%s - %d\n"),
-					get_debug_time (), prefixe,
+	gchar* tmpstr = g_strdup_printf(_("%s, %d : %s - %s:%d:%s - %d\n"),
+					get_debug_time (), clock(), prefixe,
 					file, line, function, message);
 
 	if (etat.debug_mode)
@@ -360,8 +360,8 @@ extern void debug_message_real ( gchar *prefixe, gchar * file, gint line, const
     if ( ( debugging_grisbi && level <= debugging_grisbi) || force_debug_display || etat.debug_mode) 
     {
 	/* on affiche dans la console le message */
-	gchar* tmpstr = g_strdup_printf(_("%s : %s - %s:%d:%s - %ld E %d\n"),
-					get_debug_time (), prefixe,
+	gchar* tmpstr = g_strdup_printf(_("%s, %d : %s - %s:%d:%s - %ld E %d\n"),
+					get_debug_time (), clock (), prefixe,
 					file, line, function, message.mantissa, message.exponent);
 
 	if (etat.debug_mode)


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list