git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc64af1
)
r15655: Log the result of module initialisation if it fails.
author
James Peach
<jpeach@samba.org>
Wed, 17 May 2006 00:51:42 +0000
(
00:51
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:17:05 +0000
(11:17 -0500)
(This used to be commit
3446ee5c00e114fd6697b2d70888d55ad79e63f9
)
source3/lib/module.c
patch
|
blob
|
history
diff --git
a/source3/lib/module.c
b/source3/lib/module.c
index 885faf8d80e17afe2083a604eeb6af5087ff1024..092a68cd680d330ede95faf07fff8c58736739bb 100644
(file)
--- 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;
}