mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
registry: unify debug output in the registry init functions.
Michael
(This used to be commit 4fd9b45ffc
)
This commit is contained in:
parent
6b85938f27
commit
cb624c4057
@ -30,7 +30,8 @@ bool registry_init_basic(void)
|
|||||||
|
|
||||||
werr = regdb_init();
|
werr = regdb_init();
|
||||||
if (!W_ERROR_IS_OK(werr)) {
|
if (!W_ERROR_IS_OK(werr)) {
|
||||||
DEBUG(1, ("Can't open the registry: %s\n", dos_errstr(werr)));
|
DEBUG(1, ("Failed to initialize the registry: %s\n",
|
||||||
|
dos_errstr(werr)));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
regdb_close();
|
regdb_close();
|
||||||
|
@ -70,16 +70,15 @@ bool init_registry( void )
|
|||||||
|
|
||||||
werr = regdb_init();
|
werr = regdb_init();
|
||||||
if (!W_ERROR_IS_OK(werr)) {
|
if (!W_ERROR_IS_OK(werr)) {
|
||||||
DEBUG(0, ("init_registry: failed to initialize the registry "
|
DEBUG(0, ("Failed to initialize the registry: %s\n",
|
||||||
"(%s)\n", dos_errstr(werr)));
|
dos_errstr(werr)));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* setup the necessary keys and values */
|
/* setup the necessary keys and values */
|
||||||
|
|
||||||
if ( !init_registry_data() ) {
|
if ( !init_registry_data() ) {
|
||||||
DEBUG(0, ("regdb_init: Failed to initialize data in "
|
DEBUG(0, ("Failed to initialize data in registry!\n"));
|
||||||
"registry!\n"));
|
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,17 +82,17 @@ bool registry_init_smbconf(const char *keyname)
|
|||||||
|
|
||||||
werr = regdb_init();
|
werr = regdb_init();
|
||||||
if (!W_ERROR_IS_OK(werr)) {
|
if (!W_ERROR_IS_OK(werr)) {
|
||||||
DEBUG(1, ("Can't open the registry: %s\n", dos_errstr(werr)));
|
DEBUG(1, ("Failed to initialize the registry: %s\n",
|
||||||
|
dos_errstr(werr)));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (!init_registry_key(keyname)) {
|
if (!init_registry_key(keyname)) {
|
||||||
DEBUG(1, ("Could not initialize registry key '%s'\n",
|
DEBUG(1, ("Failed to initialize registry key '%s'\n", keyname));
|
||||||
keyname));
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
reghook_cache_init();
|
reghook_cache_init();
|
||||||
if (!reghook_cache_add(keyname, &smbconf_reg_ops)) {
|
if (!reghook_cache_add(keyname, &smbconf_reg_ops)) {
|
||||||
DEBUG(1, ("Error adding smbconf reghooks to reghook cache.\n"));
|
DEBUG(1, ("Failed to add smbconf reghooks to reghook cache\n"));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user