From db0edaafe15831ba6fa9c2109da37942506c62b1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 23 Jan 2016 11:14:05 +0200 Subject: Cleanup absolute/relative path diagnostics by introducing stream verbosity --- build2/path-io.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/path-io.cxx') diff --git a/build2/path-io.cxx b/build2/path-io.cxx index 81b981b..845b0a3 100644 --- a/build2/path-io.cxx +++ b/build2/path-io.cxx @@ -16,14 +16,14 @@ namespace build2 ostream& operator<< (ostream& os, const path& p) { - return os << (relative (os) ? diag_relative (p) : p.string ()); + return os << (stream_verb (os) < 2 ? diag_relative (p) : p.string ()); } ostream& operator<< (ostream& os, const dir_path& d) { - if (relative (os)) - os << diag_relative (d); + if (stream_verb (os) < 2) + os << diag_relative (d); // Adds trailing '/'. else { const string& s (d.string ()); -- cgit v1.1