summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-11-02 14:32:00 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-11-02 15:33:02 -0500
commit40291f16b36de0af70c62847ec04a9615811c92e (patch)
tree87a94031deccaa7473e558db74b2a075f108d2b7
parentf3ee1ed5fa40dcfe4a64c10905ef159ca4069c9f (diff)
downloadsssd-40291f16b36de0af70c62847ec04a9615811c92e.tar.gz
sssd-40291f16b36de0af70c62847ec04a9615811c92e.tar.bz2
sssd-40291f16b36de0af70c62847ec04a9615811c92e.zip
Make debug message less irritating.
The 'Unable to load' debug message is now only shown when the backend target is given explicitly in the config file. I the other case we let the caller decided how to handle this error condition.
-rw-r--r--server/providers/data_provider_be.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/providers/data_provider_be.c b/server/providers/data_provider_be.c
index 65f33ce7..b20ac1f0 100644
--- a/server/providers/data_provider_be.c
+++ b/server/providers/data_provider_be.c
@@ -939,8 +939,6 @@ static int load_backend_module(struct be_ctx *ctx,
mod_init_fn = (bet_init_fn_t)dlsym(ctx->loaded_be[lb].handle,
mod_init_fn_name);
if (mod_init_fn == NULL) {
- DEBUG(0, ("Unable to load init fn %s from module %s, error: %s\n",
- mod_init_fn_name, mod_name, dlerror()));
if (default_mod_name != NULL &&
strcmp(default_mod_name, mod_name) == 0 ) {
/* If the default is used and fails we indicate this to the caller
@@ -948,6 +946,8 @@ static int load_backend_module(struct be_ctx *ctx,
* handle the different types of error conditions. */
ret = ENOENT;
} else {
+ DEBUG(0, ("Unable to load init fn %s from module %s, error: %s\n",
+ mod_init_fn_name, mod_name, dlerror()));
ret = ELIBBAD;
}
goto done;