summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odrefresh/odrefresh.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/odrefresh/odrefresh.cc b/odrefresh/odrefresh.cc
index 5f8b072f97..c9c870ed36 100644
--- a/odrefresh/odrefresh.cc
+++ b/odrefresh/odrefresh.cc
@@ -923,10 +923,10 @@ class OnDeviceRefresh final {
static void ReportSpace() {
uint64_t bytes;
std::string data_dir = GetArtApexData();
- if (GetUsedSpace(data_dir.c_str(), &bytes)) {
+ if (GetUsedSpace(data_dir, &bytes)) {
LOG(INFO) << "Used space " << bytes << " bytes.";
}
- if (GetFreeSpace(data_dir.c_str(), &bytes)) {
+ if (GetFreeSpace(data_dir, &bytes)) {
LOG(INFO) << "Available space " << bytes << " bytes.";
}
}