Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1314267 > unrolled thread

[PATCH v2 4/4] x86/efi: Use proper units in efi_find_mirror()

Started byAndy Shevchenko <andriy.shevchenko@linux.intel.com>
First post2016-01-21 16:30 +0100
Last post2016-01-21 16:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 4/4] x86/efi: Use proper units in efi_find_mirror() Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-01-21 16:30 +0100

#1314267 — [PATCH v2 4/4] x86/efi: Use proper units in efi_find_mirror()

FromAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Date2016-01-21 16:30 +0100
Subject[PATCH v2 4/4] x86/efi: Use proper units in efi_find_mirror()
Message-ID<qTplo-76i-5@gated-at.bofh.it>
Like in efi_print_mmap() use the proper units when printing sizes.

Currently it's hardcoded to 'MiB', though it might be changed to adaptive
efi_size_format() in the future.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 arch/x86/platform/efi/efi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index 3badc8a..95f70da 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -144,8 +144,8 @@ void __init efi_find_mirror(void)
 		}
 	}
 	if (mirror_size)
-		pr_info("Memory: %lldM/%lldM mirrored memory\n",
-			mirror_size>>20, total_size>>20);
+		pr_info("Memory: %lld MiB/%lld MiB mirrored memory\n",
+			mirror_size >> 20, total_size >> 20);
 }
 
 /*
-- 
2.7.0.rc3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web