[gitg/gtk3] Fixed debug macro to accept only format string
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/gtk3] Fixed debug macro to accept only format string
- Date: Fri, 25 Mar 2011 08:42:01 +0000 (UTC)
commit 52f1355ab83346221ed77458deb5a2b50141a067
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]