grub2/0030-Don-t-print-GNU-GRUB-header.patch

46 lines
1.2 KiB
Diff
Raw Normal View History

2020-07-29 20:47:36 +08:00
From 9af19d1f8184aad31b3094768a64722316d4f0da Mon Sep 17 00:00:00 2001
2019-09-30 10:52:04 -04:00
From: William Jon McCann <william.jon.mccann@gmail.com>
Date: Wed, 15 May 2013 13:53:48 -0400
2020-07-29 20:47:36 +08:00
Subject: [PATCH 030/220] Don't print GNU GRUB header
2019-09-30 10:52:04 -04:00
No one cares.
---
grub-core/normal/main.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
2020-07-29 20:47:36 +08:00
index a326b19..09d0dfe 100644
2019-09-30 10:52:04 -04:00
--- a/grub-core/normal/main.c
+++ b/grub-core/normal/main.c
2020-07-29 20:47:36 +08:00
@@ -208,15 +208,16 @@ read_config_file (const char *config)
2019-09-30 10:52:04 -04:00
/* Initialize the screen. */
void
grub_normal_init_page (struct grub_term_output *term,
- int y)
+ int y __attribute__((__unused__)))
{
+ grub_term_cls (term);
+
+#if 0
grub_ssize_t msg_len;
int posx;
char *msg_formatted;
grub_uint32_t *unicode_msg;
grub_uint32_t *last_position;
-
- grub_term_cls (term);
msg_formatted = grub_xasprintf (_("GNU GRUB version %s"), PACKAGE_VERSION);
if (!msg_formatted)
2020-07-29 20:47:36 +08:00
@@ -241,6 +242,7 @@ grub_normal_init_page (struct grub_term_output *term,
2019-09-30 10:52:04 -04:00
grub_putcode ('\n', term);
grub_putcode ('\n', term);
grub_free (unicode_msg);
+#endif
}
static void
2020-07-29 20:47:36 +08:00
--
1.8.3.1