Blame SOURCES/0001-lib-types-reformat-string_of_guestcaps.patch

3156cb
From dc69bb6033bd41b79e6203080059d4f3b0eb8027 Mon Sep 17 00:00:00 2001
3156cb
From: Laszlo Ersek <lersek@redhat.com>
3156cb
Date: Thu, 6 Jan 2022 15:09:02 +0100
3156cb
Subject: [PATCH] lib/types: reformat "string_of_guestcaps"
3156cb
3156cb
The printf format string in "string_of_guestcaps" is hard to read, because
3156cb
it is not indented properly wrt. the rest of the source code. Indent it
3156cb
properly without changing its behavior.
3156cb
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-2-lersek@redhat.com>
3156cb
Acked-by: Richard W.M. Jones <rjones@redhat.com>
3156cb
---
3156cb
 lib/types.ml | 13 +++++++------
3156cb
 1 file changed, 7 insertions(+), 6 deletions(-)
3156cb
3156cb
diff --git a/lib/types.ml b/lib/types.ml
3156cb
index 894391ba..dc3308dc 100644
3156cb
--- a/lib/types.ml
3156cb
+++ b/lib/types.ml
3156cb
@@ -423,12 +423,13 @@ let string_of_machine = function
3156cb
 
3156cb
 let string_of_guestcaps gcaps =
3156cb
   sprintf "\
3156cb
-gcaps_block_bus = %s
3156cb
-gcaps_net_bus = %s
3156cb
-gcaps_machine = %s
3156cb
-gcaps_arch = %s
3156cb
-gcaps_acpi = %b
3156cb
-" (string_of_block_type gcaps.gcaps_block_bus)
3156cb
+           gcaps_block_bus = %s\n\
3156cb
+           gcaps_net_bus = %s\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
   (string_of_machine gcaps.gcaps_machine)
3156cb
   gcaps.gcaps_arch
3156cb
-- 
3156cb
2.31.1
3156cb