1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r15655: Log the result of module initialisation if it fails.

This commit is contained in:
James Peach 2006-05-17 00:51:42 +00:00 committed by Gerald (Jerry) Carter
parent 9559886a92
commit 3446ee5c00

View File

@ -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;
}