From 89c6f04df04a6fb1efb0f73fad7963f497a93409 Mon Sep 17 00:00:00 2001 From: James Peach Date: Wed, 17 May 2006 00:51:42 +0000 Subject: r15655: Log the result of module initialisation if it fails. (This used to be commit 3446ee5c00e114fd6697b2d70888d55ad79e63f9) --- source3/lib/module.c | 8 ++++++-- 1 file 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; } -- cgit