The "string_of_guestcaps" function is out of date; the following commits
did not update it, when they introduced new fields to the "guestcaps"
record type:

- d295d6e510a4 ("v2v: Extend guestcaps to record drivers for virtio-rng,
  balloon and pvpanic.", 2017-04-06)

- 05f780c16f01 ("v2v: support configuration of viosock driver",
  2021-02-26)

Print those fields now.

Fixes: d295d6e510a4fb251d545c52c0a9d6dccabe6f78
Fixes: 05f780c16f0135c657615520c2245b42de1efc3e
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1942325
Signed-off-by: Laszlo Ersek <[email protected]>
---
 lib/types.ml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/types.ml b/lib/types.ml
index dc3308dc4d87..52db1f9e05d0 100644
--- a/lib/types.ml
+++ b/lib/types.ml
@@ -425,12 +425,20 @@ let string_of_guestcaps gcaps =
   sprintf "\
            gcaps_block_bus = %s\n\
            gcaps_net_bus = %s\n\
+           gcaps_virtio_rng = %b\n\
+           gcaps_virtio_balloon = %b\n\
+           gcaps_isa_pvpanic = %b\n\
+           gcaps_virtio_socket = %b\n\
            gcaps_machine = %s\n\
            gcaps_arch = %s\n\
            gcaps_acpi = %b\n\
           "
   (string_of_block_type gcaps.gcaps_block_bus)
   (string_of_net_type gcaps.gcaps_net_bus)
+  gcaps.gcaps_virtio_rng
+  gcaps.gcaps_virtio_balloon
+  gcaps.gcaps_isa_pvpanic
+  gcaps.gcaps_virtio_socket
   (string_of_machine gcaps.gcaps_machine)
   gcaps.gcaps_arch
   gcaps.gcaps_acpi
-- 
2.19.1.3.g30247aa5d201


_______________________________________________
Libguestfs mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to