From a4f1dfa9a81169a1cfd773343897c1e8010f424a Mon Sep 17 00:00:00 2001 From: mental Date: Thu, 10 May 2007 01:18:36 +0000 Subject: [PATCH] really fix formatting this time --- src/debug/simple-event.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2