Blame SOURCES/0148-Don-t-clear-screen-when-debugging-is-enabled.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
5593c8
Date: Sat, 23 Nov 2019 16:23:54 +0100
5593c8
Subject: [PATCH] Don't clear screen when debugging is enabled
5593c8
MIME-Version: 1.0
5593c8
Content-Type: text/plain; charset=UTF-8
5593c8
Content-Transfer-Encoding: 8bit
5593c8
5593c8
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
fd0330
[rharwood@redhat.com: rebase fuzz]
fd0330
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
5593c8
---
fd0330
 grub-core/normal/main.c | 5 +++--
fd0330
 1 file changed, 3 insertions(+), 2 deletions(-)
5593c8
5593c8
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
fd0330
index af9792c963..7de9e4c36d 100644
5593c8
--- a/grub-core/normal/main.c
5593c8
+++ b/grub-core/normal/main.c
fd0330
@@ -215,8 +215,9 @@ grub_normal_init_page (struct grub_term_output *term,
fd0330
   char *msg_formatted;
fd0330
   grub_uint32_t *unicode_msg;
fd0330
   grub_uint32_t *last_position;
fd0330
- 
5593c8
-  grub_term_cls (term);
fd0330
+
5593c8
+  if (! grub_debug_is_enabled ())
5593c8
+    grub_term_cls (term);
5593c8
 
fd0330
   msg_formatted = grub_xasprintf (_("GRUB version %s"), PACKAGE_VERSION);
fd0330
   if (!msg_formatted)