nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0050-util-grub-mkfont.c-Downgrade-warnings-about-unhandle.patch

0dc71c
From f21c40f33c95d908cee32a5063f285d22574a507 Mon Sep 17 00:00:00 2001
0dc71c
From: Vladimir Serbinenko <phcoder@gmail.com>
0dc71c
Date: Wed, 29 Jan 2014 23:41:48 +0100
0dc71c
Subject: [PATCH 050/143] 	* util/grub-mkfont.c: Downgrade warnings about
0dc71c
 unhandled features 	to debug.
0dc71c
0dc71c
---
0dc71c
 ChangeLog          |  9 +++++++++
0dc71c
 util/grub-mkfont.c | 14 ++++++++------
0dc71c
 2 files changed, 17 insertions(+), 6 deletions(-)
0dc71c
0dc71c
diff --git a/ChangeLog b/ChangeLog
0dc71c
index a49f5f1..9837c7f 100644
0dc71c
--- a/ChangeLog
0dc71c
+++ b/ChangeLog
0dc71c
@@ -1,3 +1,12 @@
0dc71c
+2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
0dc71c
+
0dc71c
+	* util/grub-mkfont.c: Downgrade warnings about unhandled features
0dc71c
+	to debug.
0dc71c
+
0dc71c
+2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
0dc71c
+
0dc71c
+	* grub-core/term/at_keyboard.c: Tolerate missing keyboard.
0dc71c
+
0dc71c
 2014-01-29  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
0dc71c
 
0dc71c
 	* .gitignore: add missing files and .exe variants.
0dc71c
diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c
0dc71c
index 3cb02ad..3de07ee 100644
0dc71c
--- a/util/grub-mkfont.c
0dc71c
+++ b/util/grub-mkfont.c
0dc71c
@@ -516,8 +516,8 @@ process_cursive (struct gsub_feature *feature,
0dc71c
 	}		      
0dc71c
       if (grub_be_to_cpu16 (lookup->flag) & ~GSUB_RTL_CHAR)
0dc71c
 	{
0dc71c
-	  printf (_("Unsupported substitution flag: 0x%x\n"),
0dc71c
-		  grub_be_to_cpu16 (lookup->flag));
0dc71c
+	  grub_util_info ("unsupported substitution flag: 0x%x",
0dc71c
+			  grub_be_to_cpu16 (lookup->flag));
0dc71c
 	}
0dc71c
       switch (feattag)
0dc71c
 	{
0dc71c
@@ -577,7 +577,8 @@ process_cursive (struct gsub_feature *feature,
0dc71c
 	       There are 2 coverage specifications: list and range.
0dc71c
 	       This warning is thrown when another coverage specification
0dc71c
 	       is detected.  */
0dc71c
-	    printf (_("Unsupported coverage specification: %d\n"), covertype);
0dc71c
+	    fprintf (stderr,
0dc71c
+		     _("Unsupported coverage specification: %d\n"), covertype);
0dc71c
 	}
0dc71c
     }
0dc71c
 }
0dc71c
@@ -616,7 +617,8 @@ add_font (struct grub_font_info *font_info, FT_Face face, int nocut)
0dc71c
 	  grub_uint32_t feattag
0dc71c
 	    = grub_be_to_cpu32 (features->features[i].feature_tag);
0dc71c
 	  if (feature->params)
0dc71c
-	    printf (_("WARNING: unsupported font feature parameters: %x\n"),
0dc71c
+	    fprintf (stderr,
0dc71c
+		     _("WARNING: unsupported font feature parameters: %x\n"),
0dc71c
 		    grub_be_to_cpu16 (feature->params));
0dc71c
 	  switch (feattag)
0dc71c
 	    {
0dc71c
@@ -647,8 +649,8 @@ add_font (struct grub_font_info *font_info, FT_Face face, int nocut)
0dc71c
 		  if (!grub_isgraph (str[j]))
0dc71c
 		    str[j] = '?';
0dc71c
 		/* TRANSLATORS: It's gsub feature, not gsub font.  */
0dc71c
-		printf (_("Unknown gsub font feature 0x%x (%s)\n"),
0dc71c
-			feattag, str);
0dc71c
+		grub_util_info ("Unknown gsub font feature 0x%x (%s)",
0dc71c
+				feattag, str);
0dc71c
 	      }
0dc71c
 	    }
0dc71c
 	}
0dc71c
-- 
0dc71c
1.9.3
0dc71c