summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e97663e)
raw | patch | inline | side by side (parent: e97663e)
author | mental <mental@users.sourceforge.net> | |
Thu, 10 May 2007 01:18:36 +0000 (01:18 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Thu, 10 May 2007 01:18:36 +0000 (01:18 +0000) |
src/debug/simple-event.h | patch | blob | history |
index 4d5264d733721d5824648ca4feeb48acc502d658..24f1c754562cb091fc57cfd84aeeedb385ff43d2 100644 (file)
--- a/src/debug/simple-event.h
+++ b/src/debug/simple-event.h
#include <stdarg.h>
#include <vector>
#include "glib/gstrfuncs.h"
+#include "glib/gmessages.h"
#include "gc-alloc.h"
#include "debug/event.h"
_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);
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);