summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-05-17 00:51:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:05 -0500
commit89c6f04df04a6fb1efb0f73fad7963f497a93409 (patch)
tree72cd25fecd268ed0d913a249c3e6ba4d9cf28ac2 /source3
parentdc64af1d2ee478254b57c323795736e85d2aed92 (diff)
downloadsamba-89c6f04df04a6fb1efb0f73fad7963f497a93409.tar.gz
samba-89c6f04df04a6fb1efb0f73fad7963f497a93409.tar.bz2
samba-89c6f04df04a6fb1efb0f73fad7963f497a93409.zip
r15655: Log the result of module initialisation if it fails.
(This used to be commit 3446ee5c00e114fd6697b2d70888d55ad79e63f9)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/module.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/lib/module.c b/source3/lib/module.c
index 885faf8d80..092a68cd68 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -61,10 +61,14 @@ static NTSTATUS do_smb_load_module(const char *module_name, BOOL is_probe)
return NT_STATUS_UNSUCCESSFUL;
}
- status = init();
-
DEBUG(2, ("Module '%s' loaded\n", module_name));
+ status = init();
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0, ("Module '%s' initialization failed: %s\n",
+ module_name, get_friendly_nt_error_msg(status)));
+ }
+
return status;
}