mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 08:35:15 +00:00
Reindent virNetDevSendEthtoolIoctl
This commit is contained in:
parent
0a9bbe748a
commit
cf922bf837
@ -3213,15 +3213,15 @@ virNetDevSendEthtoolIoctl(int fd, struct ifreq *ifr)
|
|||||||
ret = ioctl(fd, SIOCETHTOOL, ifr);
|
ret = ioctl(fd, SIOCETHTOOL, ifr);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
case EINVAL: /* kernel doesn't support SIOCETHTOOL */
|
case EINVAL: /* kernel doesn't support SIOCETHTOOL */
|
||||||
VIR_DEBUG("ethtool ioctl: invalid request");
|
VIR_DEBUG("ethtool ioctl: invalid request");
|
||||||
break;
|
break;
|
||||||
case EOPNOTSUPP: /* kernel doesn't support specific feature */
|
case EOPNOTSUPP: /* kernel doesn't support specific feature */
|
||||||
VIR_DEBUG("ethtool ioctl: request not supported");
|
VIR_DEBUG("ethtool ioctl: request not supported");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportSystemError(errno, "%s", _("ethtool ioctl error"));
|
virReportSystemError(errno, "%s", _("ethtool ioctl error"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user