diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-08-13 23:39:49 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-08-13 23:39:49 +0200 |
commit | e03120b32a343e27cfdb631099586f0350b8be41 (patch) | |
tree | 6d92f4bd66a823cb5329a4672c72d25cbb98a400 /src | |
parent | afc9adf9a7c05857c4ce14ec842e5ee554e2b582 (diff) |
module: add debug for loading/unloading app-modules
Diffstat (limited to 'src')
-rw-r--r-- | src/module.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/module.c b/src/module.c index d9c7584..83964bb 100644 --- a/src/module.c +++ b/src/module.c @@ -20,6 +20,9 @@ static struct list modappl; static void modapp_destructor(void *arg) { struct modapp *modapp = arg; + const struct mod_export *me = mod_export(modapp->mod); + if (me) + debug("module: unloading app %s\n", me->name); list_unlink(&modapp->le); mem_deref(modapp->mod); } @@ -108,6 +111,8 @@ static int module_app_handler(const struct pl *val, void *arg) { struct modapp *modapp; + debug("module: loading app %r\n", val); + modapp = mem_zalloc(sizeof(*modapp), modapp_destructor); if (!modapp) return ENOMEM; |