From patchwork Wed Sep 3 11:32:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36591 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C8C2B202E4 for ; Wed, 3 Sep 2014 11:35:17 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf49774180pde.3 for ; Wed, 03 Sep 2014 04:35:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=L0i90w/fVr9UQVkkutWjFYWwkNQe3oFzFuj1SzswB/8=; b=Lfw3N78IbAQ8QCbdVQ8noOsWo1ZCo38wR1wA8/dm1NZEAqQFdF2sz7Eh/TBctJUxLU TbJ6/jsMGmB/M/rkXpC28umoNiiUD+3OTcS/WYHyzZAly/0qsZVx1MUOVfq+idfwDtf+ fbEYvw+B6pYC1EQZkoZPxL/GNsZoG8SEWec0aOH6vOM+S+XxEw1RSRBDvK6L5kaeVsJ5 eTaea4ct/UXpyBFBoL8psBtW2/xtLuVSi1vV+VMYZfBvarCW4oNYubSkZ6hsUBGfHnO2 e2f+Tt4zc4whiRUpWgkiL8fxQZdfzasP8FZyUsaLBwMLS41pClvZeYCJrVdj9D0b0bei yBaw== X-Gm-Message-State: ALoCoQmfUIhK7GHjUDcAeccoEDE9k0XqP7YgmiW8jVcij+MAQNeZmnpXSnb4sP7uF5uQ+qPdBRQv X-Received: by 10.66.162.162 with SMTP id yb2mr21757841pab.39.1409744113124; Wed, 03 Sep 2014 04:35:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.47 with SMTP id k44ls2733791qgd.73.gmail; Wed, 03 Sep 2014 04:35:12 -0700 (PDT) X-Received: by 10.52.88.74 with SMTP id be10mr104825vdb.54.1409744112956; Wed, 03 Sep 2014 04:35:12 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id tn3si3492327vcb.16.2014.09.03.04.35.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 04:35:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so8458253vcb.6 for ; Wed, 03 Sep 2014 04:35:12 -0700 (PDT) X-Received: by 10.52.52.136 with SMTP id t8mr29453833vdo.21.1409744112854; Wed, 03 Sep 2014 04:35:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp665984vcb; Wed, 3 Sep 2014 04:35:12 -0700 (PDT) X-Received: by 10.70.48.70 with SMTP id j6mr57764243pdn.82.1409744111666; Wed, 03 Sep 2014 04:35:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gg10si10516756pac.188.2014.09.03.04.35.03 for ; Wed, 03 Sep 2014 04:35:03 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932424AbaICLdm (ORCPT + 25 others); Wed, 3 Sep 2014 07:33:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26621 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932259AbaICLc7 (ORCPT ); Wed, 3 Sep 2014 07:32:59 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s83BWc4Y008962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Sep 2014 07:32:38 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s83BWP7V002681; Wed, 3 Sep 2014 07:32:35 -0400 From: Laszlo Ersek To: mingo@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-ia64@vger.kernel.org, matt.fleming@intel.com, msalter@redhat.com, lersek@redhat.com Subject: [PATCH v2 4/5] ia64: efi: format EFI memory type & attrs with efi_md_typeattr_format() Date: Wed, 3 Sep 2014 13:32:22 +0200 Message-Id: <1409743943-16934-5-git-send-email-lersek@redhat.com> In-Reply-To: <1409743943-16934-1-git-send-email-lersek@redhat.com> References: <1409743943-16934-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The effects of the patch on the i64 memory map log are similar to those visible in the previous (x86) patch: the type enum and the attribute bitmap are decoded. Signed-off-by: Laszlo Ersek --- arch/ia64/kernel/efi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index 741b99c..c52d754 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -568,6 +568,7 @@ efi_init (void) { const char *unit; unsigned long size; + char buf[64]; md = p; size = md->num_pages << EFI_PAGE_SHIFT; @@ -586,9 +587,10 @@ efi_init (void) unit = "KB"; } - printk("mem%02d: type=%2u, attr=0x%016lx, " + printk("mem%02d: %s " "range=[0x%016lx-0x%016lx) (%4lu%s)\n", - i, md->type, md->attribute, md->phys_addr, + i, efi_md_typeattr_format(buf, sizeof(buf), md), + md->phys_addr, md->phys_addr + efi_md_size(md), size, unit); } }