Skip to contentSkip to conversation

cryptodisk: Fix translatable message

PATCH In review Vladimir Serbinenko 2 participants 4 messages Jun 17, 2024 – Jun 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cryptodisk: Fix translatable message

Fixes bug #64408.

---
 grub-core/disk/cryptodisk.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
grub-core/disk/cryptodisk.c +3 -3
index f98acade6..5e1eb2743 100644
@@ -1359,9 +1359,9 @@ grub_cmd_cryptomount (grub_extcmd_context_t ctxt, int argc, char **args)
 
       if (keyfile_offset > keyfile->size)
 	return grub_error (GRUB_ERR_OUT_OF_RANGE,
-			   N_("Keyfile offset, %llu, is greater than"
-			      "keyfile size, %" PRIuGRUB_UINT64_T),
-			   keyfile_offset, keyfile->size);
+			   N_("Keyfile offset, %llu, is greater than "
+			      "keyfile size, %llu"),
+			   keyfile_offset, (unsigned long long) keyfile->size);
 
       if (grub_file_seek (keyfile, (grub_off_t) keyfile_offset) == (grub_off_t) -1)
 	return grub_errno;
Signature · 7 lines
2.39.2


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#1 lore raw

PATCH 2/2 emu/linux: Fix determination of program name

Current code works only if package matches binary name transformation rules. It's often true but is no waz guaranteed

Fixes bug #64410

---
 grub-core/loader/emu/linux.c | 3 ++-
 include/grub/emu/misc.h      | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
grub-core/loader/emu/linux.c +2 -1
index 7de3f7f86..2a55b8387 100644
@@ -68,7 +68,8 @@ grub_linux_boot (void)
     }
 
   if (kexecute < 1)
-    grub_fatal (N_("use '"PACKAGE"-emu --kexec' to force a system restart"));
+    grub_fatal (N_("use '%s %s' to force a system restart"),
+		program_name, "--kexec");
 
   grub_dprintf ("linux", "Performing 'systemctl kexec' (%s) ",
 		(kexecute==1) ? "do-or-die" : "just-in-case");
include/grub/emu/misc.h +1 -1
index 01056954b..fa959ebe7 100644
@@ -31,7 +31,7 @@
 #include <grub/util/misc.h>
 
 extern int verbosity;
-extern const char *program_name;
+extern const char *EXPORT_VAR(program_name);
 
 void grub_init_all (void);
 void grub_fini_all (void);
Signature · 7 lines
2.39.2


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] emu/linux: Fix determination of program name

Quoted 6 lines · Vladimir Serbinenko

Current code works only if package matches binary name transformation rules. It's often true but is no waz guaranteed

Fixes bug #64410

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel