summaryrefslogtreecommitdiff
path: root/girepository/girepository.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2008-07-24 19:20:40 +0000
committerColin Walters <walters@src.gnome.org>2008-07-24 19:20:40 +0000
commit02dedb3c0d73496278513a8847ecb3150868e4cf (patch)
treec5a35bcf6bb13a82d51684200f49c6b01a484df7 /girepository/girepository.c
parentd26b75779dee447cc8f101828deeeda374678734 (diff)
downloadgobject-introspection-02dedb3c0d73496278513a8847ecb3150868e4cf.tar.gz
Add environment variable G_IREPOSITORY_VERBOSE so we can print out what
2008-07-24 Colin Walters <walters@verbum.org> * girepository/girepository.c (g_irepository_register): Add environment variable G_IREPOSITORY_VERBOSE so we can print out what we're doing. * girepository/girepository.c (g_irepository_register_file): Add GError error message to g_debug call. svn path=/trunk/; revision=296
Diffstat (limited to 'girepository/girepository.c')
-rw-r--r--girepository/girepository.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index c2b119cd..4da5ffc5 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -114,6 +114,11 @@ g_irepository_register (GIRepository *repository,
if (metadata->module == NULL)
metadata->module = g_module_open (NULL, 0);
+ if (g_getenv ("G_IREPOSITORY_VERBOSE"))
+ {
+ g_printerr ("Loaded typelib %s\n", name);
+ }
+
return name;
}
@@ -443,7 +448,7 @@ g_irepository_register_file (GIRepository *repository,
full_path = g_build_filename (dir, fname, NULL);
mfile = g_mapped_file_new (full_path, FALSE, &error1);
if (error1) {
- g_debug ("Failed to mmap \"%s\"", full_path);
+ g_debug ("Failed to mmap \"%s\": %s", full_path, error1->message);
g_clear_error (&error1);
g_free (full_path);
continue;