summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-06-24 14:24:42 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-07-16 17:12:00 +0200
commit727f4bf4829f2405c978a4c9b960bef3ad86b002 (patch)
tree3c88b0dc29e2de931243128b4a765938645ef59f
parent906177a2666bf360a3d85fec55fc942cf9b33163 (diff)
downloadsssd-727f4bf4829f2405c978a4c9b960bef3ad86b002.tar.gz
sssd-727f4bf4829f2405c978a4c9b960bef3ad86b002.tar.xz
sssd-727f4bf4829f2405c978a4c9b960bef3ad86b002.zip
IFP: Fix DEBUG messages
The DEBUG messages in the IFP responder predated Nikolai's mass-patches and were not converted correctly. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
-rw-r--r--src/responder/ifp/ifpsrv.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/responder/ifp/ifpsrv.c b/src/responder/ifp/ifpsrv.c
index b221ced70..35bcc910e 100644
--- a/src/responder/ifp/ifpsrv.c
+++ b/src/responder/ifp/ifpsrv.c
@@ -132,7 +132,8 @@ sysbus_init(TALLOC_CTX *mem_ctx,
conn = dbus_bus_get(DBUS_BUS_SYSTEM, &dbus_error);
if (conn == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE,
- ("Failed to connect to D-BUS system bus.\n"));
+ "Failed to connect to D-BUS system bus: [%s]\n",
+ dbus_error.message);
ret = EIO;
goto fail;
}
@@ -145,7 +146,8 @@ sysbus_init(TALLOC_CTX *mem_ctx,
if (ret != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
/* We were unable to register on the system bus */
DEBUG(SSSDBG_CRIT_FAILURE,
- ("Unable to request name on the system bus.\n"));
+ "Unable to request name on the system bus: [%s]\n",
+ dbus_error.message);
ret = EIO;
goto fail;
}
@@ -246,7 +248,7 @@ int ifp_process_init(TALLOC_CTX *mem_ctx,
CONFDB_IFP_CONF_ENTRY, CONFDB_SERVICE_ALLOWED_UIDS,
DEFAULT_ALLOWED_UIDS, &uid_str);
if (ret != EOK) {
- DEBUG(SSSDBG_FATAL_FAILURE, ("Failed to get allowed UIDs.\n"));
+ DEBUG(SSSDBG_FATAL_FAILURE, "Failed to get allowed UIDs.\n");
goto fail;
}
@@ -255,7 +257,7 @@ int ifp_process_init(TALLOC_CTX *mem_ctx,
&ifp_ctx->rctx->allowed_uids);
talloc_free(uid_str);
if (ret != EOK) {
- DEBUG(SSSDBG_FATAL_FAILURE, ("Failed to set allowed UIDs.\n"));
+ DEBUG(SSSDBG_FATAL_FAILURE, "Failed to set allowed UIDs.\n");
goto fail;
}
@@ -269,7 +271,7 @@ int ifp_process_init(TALLOC_CTX *mem_ctx,
ret = sss_ncache_init(rctx, &ifp_ctx->ncache);
if (ret != EOK) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("fatal error initializing negcache\n"));
+ DEBUG(SSSDBG_CRIT_FAILURE, "fatal error initializing negcache\n");
goto fail;
}
@@ -277,7 +279,7 @@ int ifp_process_init(TALLOC_CTX *mem_ctx,
CONFDB_IFP_CONF_ENTRY, CONFDB_IFP_USER_ATTR_LIST,
NULL, &attr_list_str);
if (ret != EOK) {
- DEBUG(SSSDBG_FATAL_FAILURE, ("Failed to get allowed UIDs.\n"));
+ DEBUG(SSSDBG_FATAL_FAILURE, "Failed to get allowed UIDs.\n");
goto fail;
}
@@ -285,7 +287,7 @@ int ifp_process_init(TALLOC_CTX *mem_ctx,
talloc_free(attr_list_str);
if (ifp_ctx->user_whitelist == NULL) {
DEBUG(SSSDBG_FATAL_FAILURE,
- ("Failed to parse the allowed attribute list\n"));
+ "Failed to parse the allowed attribute list\n");
goto fail;
}