summaryrefslogtreecommitdiffstats
path: root/src/debug
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-05-10 01:18:36 +0000
committermental <mental@users.sourceforge.net>2007-05-10 01:18:36 +0000
commit15b5814ca335d56c43238ccf9ce1a159505c5afd (patch)
tree2118c24c0a14bfb4267898543e0b35e73a8f7d99 /src/debug
parentfix formatting (diff)
downloadinkscape-15b5814ca335d56c43238ccf9ce1a159505c5afd.tar.gz
inkscape-15b5814ca335d56c43238ccf9ce1a159505c5afd.zip
really fix formatting this time
(bzr r2993)
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/simple-event.h4
1 files changed, 3 insertions, 1 deletions
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 <stdarg.h>
#include <vector>
#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<char> 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);