[gitg] Fixed debug macro to accept only format string



commit b4bfff9ec5476809dd38e35b828b90f13e681f62
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Thu Mar 24 12:49:36 2011 +0100

    Fixed debug macro to accept only format string

 libgitg/gitg-debug.h                   |    4 ++--
 libgitg/gitg-smart-charset-converter.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgitg/gitg-debug.h b/libgitg/gitg-debug.h
index e2ff3c6..2dfa575 100644
--- a/libgitg/gitg-debug.h
+++ b/libgitg/gitg-debug.h
@@ -45,12 +45,12 @@ void gitg_debug_message (guint level,
                          gchar const *format,
                          ...);
 
-#define gitg_debug(level,format,args...) gitg_debug_message (level, __FILE__, __LINE__, G_STRFUNC, format, args)
+#define gitg_debug(level,args...) gitg_debug_message (level, __FILE__, __LINE__, G_STRFUNC, args)
 #else
 
 #define gitg_debug_init ;
 #define gitg_debug_enabled(x) FALSE
-#define gitg_debug(level,format,args...) ;
+#define gitg_debug(level,args...) ;
 
 #endif
 
diff --git a/libgitg/gitg-smart-charset-converter.c b/libgitg/gitg-smart-charset-converter.c
index 6f98fed..dc07c25 100644
--- a/libgitg/gitg-smart-charset-converter.c
+++ b/libgitg/gitg-smart-charset-converter.c
@@ -288,7 +288,7 @@ guess_encoding (GitgSmartCharsetConverter *smart,
 
 	if (smart->priv->is_utf8)
 	{
-		gitg_debug (GITG_DEBUG_CHARSET_CONVERSION, "%s", "Guessed UTF8 conversion");
+		gitg_debug (GITG_DEBUG_CHARSET_CONVERSION, "Guessed UTF8 conversion");
 	}
 
 	if (conv != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]