summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-04-30 11:10:21 +0200
committerAndrew Tridgell <tridge@samba.org>2007-04-30 11:10:21 +0200
commit4832d8f834ff09dfd1e77d511f065f3fdf06c05e (patch)
treeac66f8c5b56f42829c160fda33ebb9dde3805e94
parentf455d3f44bd9f9a3e734947636a4be0af69dba23 (diff)
don't use stderr here - rely on logging
(This used to be ctdb commit a2a3b254b22dbaafc8c4934d99cc67d6ae4adbd1)
-rw-r--r--ctdb/common/ctdb_util.c1
-rw-r--r--ctdb/direct/ctdbd.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c
index e77dc8990d..b74162bb3f 100644
--- a/ctdb/common/ctdb_util.c
+++ b/ctdb/common/ctdb_util.c
@@ -55,7 +55,6 @@ void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...)
void ctdb_fatal(struct ctdb_context *ctdb, const char *msg)
{
DEBUG(0,("ctdb fatal error: %s\n", msg));
- fprintf(stderr, "ctdb fatal error: '%s'\n", msg);
abort();
}
diff --git a/ctdb/direct/ctdbd.c b/ctdb/direct/ctdbd.c
index c5b852ae21..bf30ad86d6 100644
--- a/ctdb/direct/ctdbd.c
+++ b/ctdb/direct/ctdbd.c
@@ -86,7 +86,8 @@ int main(int argc, const char *argv[])
/* useful default logfile */
if (ctdb->logfile == NULL) {
- char *name = talloc_asprintf(ctdb, "%s/log.ctdb.%u", VARDIR, ctdb->vnn);
+ char *name = talloc_asprintf(ctdb, "%s/log.ctdb.vnn%u",
+ VARDIR, ctdb->vnn);
ctdb_set_logfile(ctdb, name);
talloc_free(name);
}