Use g_type_name(type) instead of formatting with %ld.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16606 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-12-02 15:13:47 +00:00
parent 9cca73f3f2
commit 339dfd5841

View File

@ -246,7 +246,8 @@ gnc_plugin_page_recreate_page(GtkWidget *window,
klass = g_type_class_ref(type);
if (klass == NULL) {
LEAVE("Cannot create class %s(%ld)", page_type, type);
const gchar *type_name = g_type_name(type);
LEAVE("Cannot create class %s(%s)", page_type, type_name ? type_name : "invalid type");
return NULL;
}