Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: print a warning when the device to append is not supp…
Browse files Browse the repository at this point in the history
…orted

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 <[email protected]>
  • Loading branch information
Julio Montes committed Jun 29, 2020
1 parent 74a4258 commit 476eb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,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
Expand Down

0 comments on commit 476eb46

Please sign in to comment.