Skip to content

Commit

Permalink
Merge branch 'fix/esp_vfs_register_fd_range_warning_message' into 'ma…
Browse files Browse the repository at this point in the history
…ster'

fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range

Closes IDFGH-13421

See merge request espressif/esp-idf!35682
  • Loading branch information
haberturdeur committed Dec 19, 2024
2 parents 757d74a + 5e53f29 commit b5ac4fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/vfs/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ esp_err_t esp_vfs_register_fd_range(const esp_vfs_t *vfs, void *ctx, int min_fd,
}
}
_lock_release(&s_fd_table_lock);
ESP_LOGD(TAG, "esp_vfs_register_fd_range cannot set fd %d (used by other VFS)", i);
ESP_LOGW(TAG, "esp_vfs_register_fd_range cannot set fd %d (used by other VFS)", i);
return ESP_ERR_INVALID_ARG;
}
s_fd_table[i].permanent = true;
Expand All @@ -538,7 +538,7 @@ esp_err_t esp_vfs_register_fd_range(const esp_vfs_t *vfs, void *ctx, int min_fd,
}
_lock_release(&s_fd_table_lock);

ESP_LOGW(TAG, "esp_vfs_register_fd_range is successful for range <%d; %d) and VFS ID %d", min_fd, max_fd, index);
ESP_LOGD(TAG, "esp_vfs_register_fd_range is successful for range <%d; %d) and VFS ID %d", min_fd, max_fd, index);
}

return ret;
Expand Down

0 comments on commit b5ac4fb

Please sign in to comment.