From patchwork Mon Sep 1 00:53:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36330 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B47542054F for ; Mon, 1 Sep 2014 00:54:50 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf17049171qcx.1 for ; Sun, 31 Aug 2014 17:54:50 -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=ftDPImCBojT5ytb7aZ8w5P5h1rPwFZPtJJV6lPl18Pw=; b=NSKQIIqBioIe2fNFQ+XOHt5zoF21XB1XXi0SwOpwHlKAxhpb0aBExBeoFKkFZssg2y 9FSwwXZJP66jUWlAZKSqBIXJPwgXu4qimLjIMiQ5aXFUf/v4Vm31c7Qutzno6DQbJzBy EtLhgrALgZWJrZ4G6y/OOcVc7dOEKQMGUbvhu4g0V5sOprSShLIiOsKSwDPSbqXYVKR1 VPKDvFYdpz6SopHx+35NubMNifofh+FOa7VRwhX/+D2uYeYcG6+/2fDDzwZ+pkA7SJEI rReq2d7AYYCgRgnFvp6rnhb5Qz22Mvn3N7tQEMb/qR1MVC8muYmDYpNAumPL36egFNlo VvOg== X-Gm-Message-State: ALoCoQn6jNzceYNTkVunoYOXaDqCT/2RH4hryMW/nQSxiBXUsxQo09/sLUNs0n5jHutnPt1Jjr77 X-Received: by 10.236.77.42 with SMTP id c30mr14169679yhe.6.1409532890555; Sun, 31 Aug 2014 17:54:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.206 with SMTP id l72ls1836448qgl.46.gmail; Sun, 31 Aug 2014 17:54:50 -0700 (PDT) X-Received: by 10.52.162.74 with SMTP id xy10mr4126105vdb.51.1409532890458; Sun, 31 Aug 2014 17:54:50 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id uh9si3452600vcb.69.2014.08.31.17.54.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Aug 2014 17:54:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so4730708vcb.7 for ; Sun, 31 Aug 2014 17:54:50 -0700 (PDT) X-Received: by 10.220.184.70 with SMTP id cj6mr22574297vcb.5.1409532890367; Sun, 31 Aug 2014 17:54:50 -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 uj3csp316295vcb; Sun, 31 Aug 2014 17:54:49 -0700 (PDT) X-Received: by 10.67.5.40 with SMTP id cj8mr27018pad.137.1409532889462; Sun, 31 Aug 2014 17:54:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zz2si11370460pac.62.2014.08.31.17.54.48 for ; Sun, 31 Aug 2014 17:54:49 -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 S1752359AbaIAAyY (ORCPT + 25 others); Sun, 31 Aug 2014 20:54:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6136 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbaIAAyO (ORCPT ); Sun, 31 Aug 2014 20:54:14 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s810rtCw022853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 31 Aug 2014 20:53:55 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-38.ams2.redhat.com [10.36.116.38]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s810rgqZ013160; Sun, 31 Aug 2014 20:53:53 -0400 From: Laszlo Ersek To: 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 4/5] ia64: efi: format EFI memory type & attrs with efi_md_typeattr_format() Date: Mon, 1 Sep 2014 02:53:39 +0200 Message-Id: <1409532820-5027-5-git-send-email-lersek@redhat.com> In-Reply-To: <1409532820-5027-1-git-send-email-lersek@redhat.com> References: <1409532820-5027-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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.176 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: , 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); } }