r16606 - gnucash/trunk/src/gnome-utils - Use g_type_name(type) instead of formatting with %ld.
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Dec 2 10:13:48 EST 2007
Author: andi5
Date: 2007-12-02 10:13:47 -0500 (Sun, 02 Dec 2007)
New Revision: 16606
Trac: http://svn.gnucash.org/trac/changeset/16606
Modified:
gnucash/trunk/src/gnome-utils/gnc-plugin-page.c
Log:
Use g_type_name(type) instead of formatting with %ld.
Modified: gnucash/trunk/src/gnome-utils/gnc-plugin-page.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-plugin-page.c 2007-12-02 15:13:44 UTC (rev 16605)
+++ gnucash/trunk/src/gnome-utils/gnc-plugin-page.c 2007-12-02 15:13:47 UTC (rev 16606)
@@ -246,7 +246,8 @@
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;
}
More information about the gnucash-changes
mailing list