grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] cryptodisk: Use cipher name instead of object in error message.


From: Glenn Washburn
Subject: [PATCH] cryptodisk: Use cipher name instead of object in error message.
Date: Fri, 31 Jul 2020 09:33:19 -0500

Signed-off-by: Glenn Washburn <development@efficientek.com>
---
 grub-core/disk/cryptodisk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c
index 9d2f0d635..4a35c0478 100644
--- a/grub-core/disk/cryptodisk.c
+++ b/grub-core/disk/cryptodisk.c
@@ -470,8 +470,8 @@ grub_cryptodisk_setcipher (grub_cryptodisk_t crypt, const 
char *ciphername, cons
       secondary_cipher = grub_crypto_cipher_open (ciph);
       if (!secondary_cipher)
       {
-         ret = grub_error (GRUB_ERR_FILE_NOT_FOUND, "Secondary cipher %s isn't 
available",
-                           secondary_cipher);
+         ret = grub_error (GRUB_ERR_FILE_NOT_FOUND,
+                           "Secondary cipher %s isn't available", ciphername);
          goto err;
       }
       if (cipher->cipher->blocksize != GRUB_CRYPTODISK_GF_BYTES)
-- 
2.25.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]