From: Andrew Tridgell Date: Mon, 30 Apr 2007 09:10:21 +0000 (+0200) Subject: don't use stderr here - rely on logging X-Git-Tag: tevent-0.9.20~348^2~2808 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4832d8f834ff09dfd1e77d511f065f3fdf06c05e;p=thirdparty%2Fsamba.git don't use stderr here - rely on logging (This used to be ctdb commit a2a3b254b22dbaafc8c4934d99cc67d6ae4adbd1) --- diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c index e77dc8990d7..b74162bb3f5 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 c5b852ae217..bf30ad86d6d 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); }