From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754775AbcAWOze (ORCPT ); Sat, 23 Jan 2016 09:55:34 -0500 Received: from mga04.intel.com ([192.55.52.120]:38921 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754646AbcAWOzY (ORCPT ); Sat, 23 Jan 2016 09:55:24 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,336,1449561600"; d="scan'208";a="640131495" From: Andy Shevchenko To: James Bottomley , Matt Fleming , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , linux-efi@vger.kernel.org, Rasmus Villemoes , Andrew Morton , "linux-kernel @ vger . kernel . org" Cc: Andy Shevchenko Subject: [PATCH v3 4/4] x86/efi: Use proper units in efi_find_mirror() Date: Sat, 23 Jan 2016 16:55:13 +0200 Message-Id: <1453560913-134672-5-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.7.0.rc3 In-Reply-To: <1453560913-134672-1-git-send-email-andriy.shevchenko@linux.intel.com> References: <1453560913-134672-1-git-send-email-andriy.shevchenko@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: [PATCH v3 4/4] x86/efi: Use proper units in efi_find_mirror() Date: Sat, 23 Jan 2016 16:55:13 +0200 Message-ID: <1453560913-134672-5-git-send-email-andriy.shevchenko@linux.intel.com> References: <1453560913-134672-1-git-send-email-andriy.shevchenko@linux.intel.com> Return-path: In-Reply-To: <1453560913-134672-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: James Bottomley , Matt Fleming , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rasmus Villemoes , Andrew Morton , "linux-kernel @ vger . kernel . org" Cc: Andy Shevchenko List-Id: linux-efi@vger.kernel.org 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 --- 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