From: mental Date: Thu, 10 May 2007 01:18:36 +0000 (+0000) Subject: really fix formatting this time X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4f1dfa9a81169a1cfd773343897c1e8010f424a;p=inkscape.git really fix formatting this time --- diff --git a/src/debug/simple-event.h b/src/debug/simple-event.h index 4d5264d73..24f1c7545 100644 --- a/src/debug/simple-event.h +++ b/src/debug/simple-event.h @@ -15,6 +15,7 @@ #include #include #include "glib/gstrfuncs.h" +#include "glib/gmessages.h" #include "gc-alloc.h" #include "debug/event.h" @@ -57,7 +58,7 @@ protected: _addProperty(Util::share_string(name), Util::share_string(value)); } void _addProperty(Util::ptr_shared name, long value) { - _addFormattedProperty(name, "%l", value); + _addFormattedProperty(name, "%ld", value); } void _addProperty(char const *name, long value) { _addProperty(Util::share_string(name), value); @@ -72,6 +73,7 @@ private: va_list args; va_start(args, format); gchar *value=g_strdup_vprintf(format, args); + g_assert(value != NULL); va_end(args); _addProperty(name, value); g_free(value);