Revision: 2207 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2207&view=re... Author: colombanw Date: 2011-09-21 16:56:38 +0000 (Wed, 21 Sep 2011) Log Message: ----------- PrettyPrinter: fix printError()
A va_list isn't equal to the argument it represents, and needs an appropriate function expecting itself a va_list.
Also, it is not possible to do implicit concatenation of strings when one of the strings is not a literal.
Modified Paths: -------------- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
Modified: trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:19 UTC (rev 2206) +++ trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:38 UTC (rev 2207) @@ -1085,9 +1085,10 @@ va_list va; va_start(va, msg); #ifdef HAVE_GLIB - g_warning(msg, va); + g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, msg, va); #else - PP_ERROR(msg, va); + vfprintf(stderr, msg, va); + putc('\n', stderr); #endif va_end(va);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.