Blame SOURCES/0321-Added-debug-statements-to-grub_disk_open-and-grub_di.patch

80913e
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
80913e
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
80913e
Date: Sat, 23 Nov 2019 15:22:16 +0100
80913e
Subject: [PATCH] Added debug statements to grub_disk_open() and
80913e
 grub_disk_close() on success
80913e
MIME-Version: 1.0
80913e
Content-Type: text/plain; charset=UTF-8
80913e
Content-Transfer-Encoding: 8bit
80913e
80913e
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
80913e
---
80913e
 grub-core/kern/disk.c | 6 +++++-
80913e
 1 file changed, 5 insertions(+), 1 deletion(-)
80913e
80913e
diff --git a/grub-core/kern/disk.c b/grub-core/kern/disk.c
b32e65
index 789f8c052..7f58c5614 100644
80913e
--- a/grub-core/kern/disk.c
80913e
+++ b/grub-core/kern/disk.c
80913e
@@ -285,6 +285,8 @@ grub_disk_open (const char *name)
80913e
       return 0;
80913e
     }
80913e
 
80913e
+  grub_dprintf ("disk", "Opening `%s' succeeded.\n", name);
80913e
+
80913e
   return disk;
80913e
 }
80913e
 
80913e
@@ -292,7 +294,7 @@ void
80913e
 grub_disk_close (grub_disk_t disk)
80913e
 {
80913e
   grub_partition_t part;
80913e
-  grub_dprintf ("disk", "Closing `%s'.\n", disk->name);
80913e
+  grub_dprintf ("disk", "Closing `%s'...\n", disk->name);
80913e
 
80913e
   if (disk->dev && disk->dev->close)
80913e
     (disk->dev->close) (disk);
80913e
@@ -306,8 +308,10 @@ grub_disk_close (grub_disk_t disk)
80913e
       grub_free (disk->partition);
80913e
       disk->partition = part;
80913e
     }
80913e
+  grub_dprintf ("disk", "Closing `%s' succeeded.\n", disk->name);
80913e
   grub_free ((void *) disk->name);
80913e
   grub_free (disk);
80913e
+
80913e
 }
80913e
 
80913e
 /* Small read (less than cache size and not pass across cache unit boundaries).