Skip to content

Commit

Permalink
fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range
Browse files Browse the repository at this point in the history
  • Loading branch information
haberturdeur committed Dec 16, 2024
1 parent cd225d0 commit 5e53f29
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 5e53f29

Please sign in to comment.