From 8f4aaae28c88c707853f8f28d8babc4efe0c1bf6 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Wed, 3 Mar 2010 08:33:22 +0100 Subject: Add forgotten \n in DEBUG statements Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too. --- src/responder/common/responder_common.c | 4 ++-- src/responder/common/responder_dp.c | 6 +++--- src/responder/nss/nsssrv_cmd.c | 4 ++-- src/responder/nss/nsssrv_nc.c | 2 +- src/responder/pam/pam_LOCAL_domain.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/responder') diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c index ca830e473..f524afb93 100644 --- a/src/responder/common/responder_common.c +++ b/src/responder/common/responder_common.c @@ -207,7 +207,7 @@ static void accept_priv_fd_handler(struct tevent_context *ev, len = sizeof(cctx->addr); cctx->cfd = accept(rctx->priv_lfd, (struct sockaddr *)&cctx->addr, &len); if (cctx->cfd == -1) { - DEBUG(1, ("Accept failed [%s]", strerror(errno))); + DEBUG(1, ("Accept failed [%s]\n", strerror(errno))); talloc_free(cctx); return; } @@ -260,7 +260,7 @@ static void accept_fd_handler(struct tevent_context *ev, len = sizeof(cctx->addr); cctx->cfd = accept(rctx->lfd, (struct sockaddr *)&cctx->addr, &len); if (cctx->cfd == -1) { - DEBUG(1, ("Accept failed [%s]", strerror(errno))); + DEBUG(1, ("Accept failed [%s]\n", strerror(errno))); talloc_free(cctx); return; } diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index 782befb17..d5a4ca760 100644 --- a/src/responder/common/responder_dp.c +++ b/src/responder/common/responder_dp.c @@ -366,7 +366,7 @@ int sss_dp_send_acct_req(struct resp_ctx *rctx, TALLOC_CTX *callback_memctx, value.ptr = sdp_req; hret = hash_enter(dp_requests, &key, &value); if (hret != HASH_SUCCESS) { - DEBUG(0, ("Could not store request query (%s)", + DEBUG(0, ("Could not store request query (%s)\n", hash_error_string(hret))); talloc_zfree(sdp_req); ret = EIO; @@ -379,7 +379,7 @@ int sss_dp_send_acct_req(struct resp_ctx *rctx, TALLOC_CTX *callback_memctx, sdp_req->tev = tevent_add_timer(sdp_req->ev, sdp_req, tv, sdp_req_timeout, sdp_req); if (!sdp_req->tev) { - DEBUG(0, ("Out of Memory!?")); + DEBUG(0, ("Out of Memory!?\n")); talloc_zfree(sdp_req); ret = ENOMEM; goto done; @@ -498,7 +498,7 @@ static int sss_dp_send_acct_req_create(struct resp_ctx *rctx, sss_dp_send_acct_callback, sdp_req, NULL); if (!dbret) { - DEBUG(0, ("Could not queue up pending request!")); + DEBUG(0, ("Could not queue up pending request!\n")); talloc_zfree(sdp_req); dbus_pending_call_cancel(pending_reply); dbus_message_unref(msg); diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 46d4a2361..c43a544eb 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -75,13 +75,13 @@ static int nss_cmd_send_error(struct nss_cmd_ctx *cmdctx, int err) } #define NSS_CMD_FATAL_ERROR(cctx) do { \ - DEBUG(1,("Fatal error, killing connection!")); \ + DEBUG(1,("Fatal error, killing connection!\n")); \ talloc_free(cctx); \ return; \ } while(0) #define NSS_CMD_FATAL_ERROR_CODE(cctx, ret) do { \ - DEBUG(1,("Fatal error, killing connection!")); \ + DEBUG(1,("Fatal error, killing connection!\n")); \ talloc_free(cctx); \ return ret; \ } while(0) diff --git a/src/responder/nss/nsssrv_nc.c b/src/responder/nss/nsssrv_nc.c index 1fa7d612f..8d8ef01c1 100644 --- a/src/responder/nss/nsssrv_nc.c +++ b/src/responder/nss/nsssrv_nc.c @@ -141,7 +141,7 @@ static int nss_ncache_set_str(struct nss_nc_ctx *ctx, ret = tdb_store(ctx->tdb, key, data, TDB_REPLACE); if (ret != 0) { - DEBUG(1, ("Negative cache failed to set entry: [%s]", + DEBUG(1, ("Negative cache failed to set entry: [%s]\n", tdb_errorstr(ctx->tdb))); ret = EFAULT; } diff --git a/src/responder/pam/pam_LOCAL_domain.c b/src/responder/pam/pam_LOCAL_domain.c index 34f0c8dd5..a598e77e8 100644 --- a/src/responder/pam/pam_LOCAL_domain.c +++ b/src/responder/pam/pam_LOCAL_domain.c @@ -265,7 +265,7 @@ static void do_pam_chauthtok(struct LOCAL_request *lreq) if (strlen(newauthtok) == 0) { /* TODO: should we allow null passwords via a config option ? */ - DEBUG(1, ("Empty passwords are not allowed!")); + DEBUG(1, ("Empty passwords are not allowed!\n")); ret = EINVAL; goto done; } -- cgit