e3a408
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
e3a408
From: Javier Martinez Canillas <javierm@redhat.com>
e3a408
Date: Mon, 11 Feb 2019 15:14:10 +0100
e3a408
Subject: [PATCH] Don't make grub_strtoull() print an error if no conversion is
e3a408
 performed
e3a408
e3a408
Callers can check if grub_errno was set to GRUB_ERR_BAD_NUMBER, so there's
e3a408
no need to print an error if a conversion couldn't be performed. This just
e3a408
pollutes the output with noisy error messages.
e3a408
e3a408
Resolves: rhbz#1674512
e3a408
e3a408
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
e3a408
---
e3a408
 grub-core/kern/misc.c | 3 +--
e3a408
 1 file changed, 1 insertion(+), 2 deletions(-)
e3a408
e3a408
diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
e3a408
index f6eaa7b4df8..2477eb609ba 100644
e3a408
--- a/grub-core/kern/misc.c
e3a408
+++ b/grub-core/kern/misc.c
e3a408
@@ -473,8 +473,7 @@ grub_strtoull (const char *str, const char ** const end, int base)
e3a408
 
e3a408
   if (! found)
e3a408
     {
e3a408
-      grub_error (GRUB_ERR_BAD_NUMBER,
e3a408
-		  N_("unrecognized number"));
e3a408
+      grub_errno = GRUB_ERR_BAD_NUMBER;
e3a408
       return 0;
e3a408
     }
e3a408