Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bea42880 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

tombstoned: silence spurious error messages. am: 8498016b am: 8fb50dc7

am: 44877b9c

Change-Id: I32f8ec5c1335589ba5999bb0377c7ad6b6d4d1e4
parents 32d18e22 44877b9c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -85,7 +85,13 @@ static void find_oldest_tombstone() {
    std::string path = android::base::StringPrintf("%stombstone_%02zu", kTombstoneDirectory, i);
    struct stat st;
    if (stat(path.c_str(), &st) != 0) {
      if (errno == ENOENT) {
        oldest_tombstone = i;
        break;
      } else {
        PLOG(ERROR) << "failed to stat " << path;
        continue;
      }
    }

    if (st.st_mtime < oldest_time) {