From: Rusty Russell Date: Mon, 30 Aug 2010 13:09:04 +0000 (+0930) Subject: tools: only print out creating directory the first time. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=5393341ce6bc2091c088696cd5fe8f9c958bf6a7 tools: only print out creating directory the first time. --- diff --git a/tools/tools.c b/tools/tools.c index 2983cfca..a4944bd1 100644 --- a/tools/tools.c +++ b/tools/tools.c @@ -204,9 +204,9 @@ char *temp_dir(const void *ctx) err(1, "mkdir %s failed", tmpdir); } talloc_set_destructor(tmpdir, unlink_all); + if (tools_verbose) + printf("Created temporary directory %s\n", tmpdir); } - if (tools_verbose) - printf("Created temporary directory %s\n", tmpdir); return tmpdir; }