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

Commit e40907ac authored by Tobias Melin's avatar Tobias Melin Committed by Pavlin Radoslavov
Browse files

Don't print error message when rename operation is successful

Bug: 65355196
Change-Id: I34504175a58d93f0dd71a8a51275818ebace4b6a
parent 5a87b740
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ static void open_next_snoop_file() {
  get_btsnoop_log_path(log_path);
  get_btsnoop_last_log_path(last_log_path, log_path);

  if (!rename(log_path, last_log_path) && errno != ENOENT)
  if (rename(log_path, last_log_path) != 0 && errno != ENOENT)
    LOG_ERROR(LOG_TAG, "%s unable to rename '%s' to '%s': %s", __func__,
              log_path, last_log_path, strerror(errno));