mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
virtcontainers: print a warning when the device to append is not supported
Print a warning message when the device to append to a QEMU VM is not supported. This change is just to improve debuggability. Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
919fc4cde5
commit
2afbfcab99
@ -1761,7 +1761,7 @@ func (q *qemu) addDevice(devInfo interface{}, devType deviceType) error {
|
|||||||
case config.VFIODev:
|
case config.VFIODev:
|
||||||
q.qemuConfig.Devices = q.arch.appendVFIODevice(q.qemuConfig.Devices, v)
|
q.qemuConfig.Devices = q.arch.appendVFIODevice(q.qemuConfig.Devices, v)
|
||||||
default:
|
default:
|
||||||
break
|
q.Logger().WithField("dev-type", v).Warn("Could not append device: unsupported device type")
|
||||||
}
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user