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:
Julio Montes 2020-06-29 10:16:15 -05:00
parent 919fc4cde5
commit 2afbfcab99

View File

@ -1761,7 +1761,7 @@ func (q *qemu) addDevice(devInfo interface{}, devType deviceType) error {
case config.VFIODev:
q.qemuConfig.Devices = q.arch.appendVFIODevice(q.qemuConfig.Devices, v)
default:
break
q.Logger().WithField("dev-type", v).Warn("Could not append device: unsupported device type")
}
return err