Blame SOURCES/0002-lib-types-update-string_of_guestcaps.patch

3156cb
From 08786886302cceb7ee73cfa6c01325f690a3c094 Mon Sep 17 00:00:00 2001
3156cb
From: Laszlo Ersek <lersek@redhat.com>
3156cb
Date: Thu, 6 Jan 2022 15:09:03 +0100
3156cb
Subject: [PATCH] lib/types: update "string_of_guestcaps"
3156cb
3156cb
The "string_of_guestcaps" function is out of date; the following commits
3156cb
did not update it, when they introduced new fields to the "guestcaps"
3156cb
record type:
3156cb
3156cb
- d295d6e510a4 ("v2v: Extend guestcaps to record drivers for virtio-rng,
3156cb
  balloon and pvpanic.", 2017-04-06)
3156cb
3156cb
- 05f780c16f01 ("v2v: support configuration of viosock driver",
3156cb
  2021-02-26)
3156cb
3156cb
Print those fields now.
3156cb
3156cb
Fixes: d295d6e510a4fb251d545c52c0a9d6dccabe6f78
3156cb
Fixes: 05f780c16f0135c657615520c2245b42de1efc3e
3156cb
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1942325
3156cb
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
3156cb
Message-Id: <20220106140910.13695-3-lersek@redhat.com>
3156cb
Acked-by: Richard W.M. Jones <rjones@redhat.com>
3156cb
---
3156cb
 lib/types.ml | 8 ++++++++
3156cb
 1 file changed, 8 insertions(+)
3156cb
3156cb
diff --git a/lib/types.ml b/lib/types.ml
3156cb
index dc3308dc..52db1f9e 100644
3156cb
--- a/lib/types.ml
3156cb
+++ b/lib/types.ml
3156cb
@@ -425,12 +425,20 @@ let string_of_guestcaps gcaps =
3156cb
   sprintf "\
3156cb
            gcaps_block_bus = %s\n\
3156cb
            gcaps_net_bus = %s\n\
3156cb
+           gcaps_virtio_rng = %b\n\
3156cb
+           gcaps_virtio_balloon = %b\n\
3156cb
+           gcaps_isa_pvpanic = %b\n\
3156cb
+           gcaps_virtio_socket = %b\n\
3156cb
            gcaps_machine = %s\n\
3156cb
            gcaps_arch = %s\n\
3156cb
            gcaps_acpi = %b\n\
3156cb
           "
3156cb
   (string_of_block_type gcaps.gcaps_block_bus)
3156cb
   (string_of_net_type gcaps.gcaps_net_bus)
3156cb
+  gcaps.gcaps_virtio_rng
3156cb
+  gcaps.gcaps_virtio_balloon
3156cb
+  gcaps.gcaps_isa_pvpanic
3156cb
+  gcaps.gcaps_virtio_socket
3156cb
   (string_of_machine gcaps.gcaps_machine)
3156cb
   gcaps.gcaps_arch
3156cb
   gcaps.gcaps_acpi
3156cb
-- 
3156cb
2.31.1
3156cb