aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze_util_freebsd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/blaze_util_freebsd.cc')
-rw-r--r--src/main/cpp/blaze_util_freebsd.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/cpp/blaze_util_freebsd.cc b/src/main/cpp/blaze_util_freebsd.cc
index 4ff2278b54..5c516785f8 100644
--- a/src/main/cpp/blaze_util_freebsd.cc
+++ b/src/main/cpp/blaze_util_freebsd.cc
@@ -32,6 +32,7 @@
#include "src/main/cpp/util/errors.h"
#include "src/main/cpp/util/exit_code.h"
#include "src/main/cpp/util/file.h"
+#include "src/main/cpp/util/logging.h"
#include "src/main/cpp/util/port.h"
#include "src/main/cpp/util/strings.h"
@@ -39,7 +40,6 @@ namespace blaze {
using blaze_util::die;
using blaze_util::pdie;
-using blaze_util::PrintWarning;
using std::string;
string GetOutputRoot() {
@@ -58,16 +58,15 @@ string GetOutputRoot() {
void WarnFilesystemType(const string &output_base) {
struct statfs buf = {};
if (statfs(output_base.c_str(), &buf) < 0) {
- PrintWarning("couldn't get file system type information for '%s': %s",
- output_base.c_str(), strerror(errno));
+ BAZEL_LOG(WARNING) << "couldn't get file system type information for '"
+ << output_base << "': " << strerror(errno);
return;
}
if (strcmp(buf.f_fstypename, "nfs") == 0) {
- PrintWarning(
- "Output base '%s' is on NFS. This may lead "
- "to surprising failures and undetermined behavior.",
- output_base.c_str());
+ BAZEL_LOG(WARNING) << "Output base '" << output_base
+ << "' is on NFS. This may lead to surprising failures "
+ "and undetermined behavior.";
}
}