From a82cdb8fd9ba02034d296769772cdf81244da66a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Apr 2015 13:01:46 +0200 Subject: Automatically decide when to print relative/absolute paths --- build/config/operation.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'build/config') diff --git a/build/config/operation.cxx b/build/config/operation.cxx index ec9e4e6..3e4d64a 100644 --- a/build/config/operation.cxx +++ b/build/config/operation.cxx @@ -40,10 +40,7 @@ namespace build { path f (out_root / src_root_file); - if (verb >= 1) - text << "config::save_src_root " << f.string (); - else - text << "save " << f; + text << (verb ? "config::save_src_root " : "save ") << f; try { @@ -71,10 +68,7 @@ namespace build const dir_path& out_root (root.path ()); path f (out_root / config_file); - if (verb >= 1) - text << "config::save_config " << f.string (); - else - text << "save " << f; + text << (verb ? "config::save_config " : "save ") << f; try { @@ -322,7 +316,7 @@ namespace build { case rmdir_status::not_empty: { - warn << "directory " << out_root.string () << " is " + warn << "directory " << out_root << " is " << (out_root == work ? "current working directory" : "not empty") << ", not removing"; -- cgit v1.1