diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 11:14:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 11:14:05 +0200 |
commit | db0edaafe15831ba6fa9c2109da37942506c62b1 (patch) | |
tree | 320dfcbf16b553c162cd079d633f16b6054b9740 /build2/path-io.cxx | |
parent | 19c37866524f60a7710b256dd13bf1da9f8cff16 (diff) |
Cleanup absolute/relative path diagnostics by introducing stream verbosity
Diffstat (limited to 'build2/path-io.cxx')
-rw-r--r-- | build2/path-io.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ()); |