summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 12:46:21 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 15:33:47 +0200
commitcb624c40573b10fbb93c14a1aa436780ffd6caa4 (patch)
tree7cd719f78c375a3e454d23037947e961968a84d6 /source3
parent6b85938f275aad0fbb329ee46ed718ce8b101930 (diff)
downloadsamba-cb624c40573b10fbb93c14a1aa436780ffd6caa4.tar.gz
samba-cb624c40573b10fbb93c14a1aa436780ffd6caa4.tar.bz2
samba-cb624c40573b10fbb93c14a1aa436780ffd6caa4.zip
registry: unify debug output in the registry init functions.
Michael (This used to be commit 4fd9b45ffc08e7deeae58be3129832148748af13)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_init_basic.c3
-rw-r--r--source3/registry/reg_init_full.c7
-rw-r--r--source3/registry/reg_init_smbconf.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/source3/registry/reg_init_basic.c b/source3/registry/reg_init_basic.c
index 9098bc4aec..e72765bdf2 100644
--- a/source3/registry/reg_init_basic.c
+++ b/source3/registry/reg_init_basic.c
@@ -30,7 +30,8 @@ bool registry_init_basic(void)
werr = regdb_init();
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;
}
regdb_close();
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c
index e9273a044c..04eff36057 100644
--- a/source3/registry/reg_init_full.c
+++ b/source3/registry/reg_init_full.c
@@ -70,16 +70,15 @@ bool init_registry( void )
werr = regdb_init();
if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0, ("init_registry: failed to initialize the registry "
- "(%s)\n", dos_errstr(werr)));
+ DEBUG(0, ("Failed to initialize the registry: %s\n",
+ dos_errstr(werr)));
goto fail;
}
/* setup the necessary keys and values */
if ( !init_registry_data() ) {
- DEBUG(0, ("regdb_init: Failed to initialize data in "
- "registry!\n"));
+ DEBUG(0, ("Failed to initialize data in registry!\n"));
goto fail;
}
diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c
index 8d2fe53b53..670f7a9c5d 100644
--- a/source3/registry/reg_init_smbconf.c
+++ b/source3/registry/reg_init_smbconf.c
@@ -82,17 +82,17 @@ bool registry_init_smbconf(const char *keyname)
werr = regdb_init();
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;
}
if (!init_registry_key(keyname)) {
- DEBUG(1, ("Could not initialize registry key '%s'\n",
- keyname));
+ DEBUG(1, ("Failed to initialize registry key '%s'\n", keyname));
goto done;
}
reghook_cache_init();
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;
}