nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: William Jon McCann <william.jon.mccann@gmail.com>
5593c8
Date: Wed, 15 May 2013 13:53:48 -0400
5593c8
Subject: [PATCH] Don't print GNU GRUB header
5593c8
5593c8
No one cares.
5593c8
---
5593c8
 grub-core/normal/main.c | 8 +++++---
5593c8
 1 file changed, 5 insertions(+), 3 deletions(-)
5593c8
5593c8
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
d3c3ab
index 7ca2e5400b1..5d5f7b539f5 100644
5593c8
--- a/grub-core/normal/main.c
5593c8
+++ b/grub-core/normal/main.c
5593c8
@@ -208,15 +208,16 @@ read_config_file (const char *config)
5593c8
 /* Initialize the screen.  */
5593c8
 void
5593c8
 grub_normal_init_page (struct grub_term_output *term,
5593c8
-		       int y)
5593c8
+		       int y __attribute__((__unused__)))
5593c8
 {
5593c8
+  grub_term_cls (term);
5593c8
+
5593c8
+#if 0
5593c8
   grub_ssize_t msg_len;
5593c8
   int posx;
5593c8
   char *msg_formatted;
5593c8
   grub_uint32_t *unicode_msg;
5593c8
   grub_uint32_t *last_position;
5593c8
- 
5593c8
-  grub_term_cls (term);
5593c8
 
5593c8
   msg_formatted = grub_xasprintf (_("GNU GRUB  version %s"), PACKAGE_VERSION);
5593c8
   if (!msg_formatted)
5593c8
@@ -241,6 +242,7 @@ grub_normal_init_page (struct grub_term_output *term,
5593c8
   grub_putcode ('\n', term);
5593c8
   grub_putcode ('\n', term);
5593c8
   grub_free (unicode_msg);
5593c8
+#endif
5593c8
 }
5593c8
 
5593c8
 static void