a5bd9f6
From e482ffb0dcaa5a0b5d69aeaa178ece164cf9ba8c Mon Sep 17 00:00:00 2001
a5bd9f6
From: Colin Watson <cjwatson@ubuntu.com>
a5bd9f6
Date: Sun, 13 Jan 2013 01:47:46 +0000
a5bd9f6
Subject: [PATCH 102/364] * util/grub-mkimage.c (generate_image): Fix "size of
a5bd9f6
 public key" info message.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog           | 5 +++++
a5bd9f6
 util/grub-mkimage.c | 4 ++--
a5bd9f6
 2 files changed, 7 insertions(+), 2 deletions(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index 14bff81..784d737 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,5 +1,10 @@
a5bd9f6
 2013-01-13  Colin Watson  <cjwatson@ubuntu.com>
a5bd9f6
 
a5bd9f6
+	* util/grub-mkimage.c (generate_image): Fix "size of public key"
a5bd9f6
+	info message.
a5bd9f6
+
a5bd9f6
+2013-01-13  Colin Watson  <cjwatson@ubuntu.com>
a5bd9f6
+
a5bd9f6
 	Remove nested functions from PCI iterators.
a5bd9f6
 
a5bd9f6
 	* grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
a5bd9f6
diff --git a/util/grub-mkimage.c b/util/grub-mkimage.c
a5bd9f6
index 23a9970..d0eecf2 100644
a5bd9f6
--- a/util/grub-mkimage.c
a5bd9f6
+++ b/util/grub-mkimage.c
a5bd9f6
@@ -740,8 +740,8 @@ generate_image (const char *dir, const char *prefix,
a5bd9f6
       {
a5bd9f6
 	size_t curs;
a5bd9f6
 	curs = ALIGN_ADDR (grub_util_get_image_size (pubkey_paths[i]));
a5bd9f6
-	grub_util_info ("the size of public key is 0x%llx",
a5bd9f6
-			(unsigned long long) pubkey_paths[i]);
a5bd9f6
+	grub_util_info ("the size of public key %zd is 0x%llx",
a5bd9f6
+			i, (unsigned long long) curs);
a5bd9f6
 	total_module_size += curs + sizeof (struct grub_module_header);
a5bd9f6
       }
a5bd9f6
   }
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6