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