From f4d5049b5d74cf907c5c5bba3130306adff0205d Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sat, 29 Nov 2008 16:43:41 -0500 Subject: buildrun/caching warning cleanup --- hash.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hash.cxx') diff --git a/hash.cxx b/hash.cxx index 45039391..a10815c9 100644 --- a/hash.cxx +++ b/hash.cxx @@ -161,9 +161,10 @@ find_hash (systemtap_session& s, const string& script) hashdir += string("/") + result[i*2] + result[i*2 + 1]; if (create_dir(hashdir.c_str()) != 0) { - cerr << "Warning: failed to create cache directory (\"" - << hashdir + "\"): " << strerror(errno) << endl; - cerr << "Disabling cache support." << endl; + if (! s.suppress_warnings) + cerr << "Warning: failed to create cache directory (\"" + << hashdir + "\"): " << strerror(errno) + << ", disabling cache support." << endl; s.use_cache = false; return; } -- cgit