mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
9cca73f3f2
commit
339dfd5841
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user