udev/net: update log message
This commit is contained in:
@@ -905,17 +905,17 @@ static int link_apply_sr_iov_config(Link *link) {
|
||||
|
||||
r = sr_iov_get_num_vfs(link->event->dev, &n);
|
||||
if (r < 0) {
|
||||
log_link_warning_errno(link, r, "Failed to get the number of SR-IOV virtual functions, ignoring [SR-IOV] sections: %m");
|
||||
log_link_warning_errno(link, r, "Failed to get the number of SR-IOV virtual functions, ignoring all [SR-IOV] sections: %m");
|
||||
return 0;
|
||||
}
|
||||
if (n == 0) {
|
||||
log_link_warning(link, "No SR-IOV virtual function exists, ignoring [SR-IOV] sections: %m");
|
||||
log_link_warning(link, "No SR-IOV virtual function exists, ignoring all [SR-IOV] sections: %m");
|
||||
return 0;
|
||||
}
|
||||
|
||||
ORDERED_HASHMAP_FOREACH(sr_iov, link->config->sr_iov_by_section) {
|
||||
if (sr_iov->vf >= n) {
|
||||
log_link_warning(link, "SR-IOV virtual function %"PRIu32" does not exist, ignoring.", sr_iov->vf);
|
||||
log_link_warning(link, "SR-IOV virtual function %"PRIu32" does not exist, ignoring [SR-IOV] section for the virtual function.", sr_iov->vf);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user