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/db/sysdb.c | 8 ++++---- src/db/sysdb_ops.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/db') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 41dd4f3f..815f53d2 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -1629,7 +1629,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, while ((ldif = ldb_ldif_read_string(ctx->ldb, &base_ldif))) { ret = ldb_add(ctx->ldb, ldif->msg); if (ret != LDB_SUCCESS) { - DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!", + DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!\n", ret, ldb_errstring(ctx->ldb), domain->name)); ret = EIO; goto done; @@ -1657,7 +1657,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, /* do a synchronous add */ ret = ldb_add(ctx->ldb, msg); if (ret != LDB_SUCCESS) { - DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!", + DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!\n", ret, ldb_errstring(ctx->ldb), domain->name)); ret = EIO; goto done; @@ -1685,7 +1685,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, /* do a synchronous add */ ret = ldb_add(ctx->ldb, msg); if (ret != LDB_SUCCESS) { - DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!", + DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!\n", ret, ldb_errstring(ctx->ldb), domain->name)); ret = EIO; goto done; @@ -1713,7 +1713,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, /* do a synchronous add */ ret = ldb_add(ctx->ldb, msg); if (ret != LDB_SUCCESS) { - DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!", + DEBUG(0, ("Failed to initialize DB (%d, [%s]) for domain %s!\n", ret, ldb_errstring(ctx->ldb), domain->name)); ret = EIO; goto done; diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 33cfd91f..618b8108 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -147,7 +147,7 @@ static int sldb_request_callback(struct ldb_request *ldbreq, int err; if (!ldbreply) { - DEBUG(6, ("Error: Missing ldbreply")); + DEBUG(6, ("Error: Missing ldbreply\n")); ERROR_OUT(err, EIO, fail); } @@ -1314,7 +1314,7 @@ static void sysdb_get_new_id_base(struct tevent_req *subreq) case LDB_REPLY_ENTRY: if (state->base) { DEBUG(1, ("More than one reply for a base search ?! " - "DB seems corrupted, aborting.")); + "DB seems corrupted, aborting.\n")); tevent_req_error(req, EFAULT); return; } -- cgit