ctdb-tool: All errors should be logged via stderr
authorAmitay Isaacs <amitay@gmail.com>
Fri, 6 May 2016 04:06:43 +0000 (14:06 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 10 May 2016 20:51:22 +0000 (22:51 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tools/ctdb.c

index ea8788f887524546063fb08c62b4225df42088ba..b6f7c45c847fb23a8aea70d7d806c634f9ae3586 100644 (file)
@@ -942,7 +942,7 @@ static int find_node_xpnn(void)
                }
        }
 
-       printf("Failed to detect which PNN this node is\n");
+       DEBUG(DEBUG_ERR, ("Failed to detect which PNN this node is\n"));
        talloc_free(mem_ctx);
        return -1;
 }