2020-12-31 15:03:56 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
|
|
|
|
Date: Sat, 23 Nov 2019 15:22:16 +0100
|
|
|
|
Subject: [PATCH] Added debug statements to grub_disk_open() and
|
|
|
|
grub_disk_close() on success
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
|
|
|
|
---
|
2024-07-10 18:20:32 +00:00
|
|
|
grub-core/kern/disk.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
2020-12-31 15:03:56 +00:00
|
|
|
|
|
|
|
diff --git a/grub-core/kern/disk.c b/grub-core/kern/disk.c
|
2024-07-10 18:20:32 +00:00
|
|
|
index 1eda58fe9a1..355b6579d87 100644
|
2020-12-31 15:03:56 +00:00
|
|
|
--- a/grub-core/kern/disk.c
|
|
|
|
+++ b/grub-core/kern/disk.c
|
|
|
|
@@ -285,6 +285,8 @@ grub_disk_open (const char *name)
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ grub_dprintf ("disk", "Opening `%s' succeeded.\n", name);
|
|
|
|
+
|
|
|
|
return disk;
|
|
|
|
}
|
|
|
|
|
2024-07-10 18:20:32 +00:00
|
|
|
@@ -310,8 +312,10 @@ grub_disk_close (grub_disk_t disk)
|
2020-12-31 15:03:56 +00:00
|
|
|
grub_free (disk->partition);
|
|
|
|
disk->partition = part;
|
|
|
|
}
|
|
|
|
+ grub_dprintf ("disk", "Closing `%s' succeeded.\n", disk->name);
|
|
|
|
grub_free ((void *) disk->name);
|
|
|
|
grub_free (disk);
|
|
|
|
+
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Small read (less than cache size and not pass across cache unit boundaries).
|