From 727f4bf4829f2405c978a4c9b960bef3ad86b002 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 24 Jun 2014 14:24:42 +0200 Subject: IFP: Fix DEBUG messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DEBUG messages in the IFP responder predated Nikolai's mass-patches and were not converted correctly. Reviewed-by: Pavel Březina --- src/responder/ifp/ifpsrv.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') 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; } -- cgit