From patchwork Fri Aug 26 17:10:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 1102622 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7QHB00w000689 for ; Fri, 26 Aug 2011 17:11:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070Ab1HZRK7 (ORCPT ); Fri, 26 Aug 2011 13:10:59 -0400 Received: from smtp-out.google.com ([216.239.44.51]:21590 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750934Ab1HZRK6 (ORCPT ); Fri, 26 Aug 2011 13:10:58 -0400 Received: from wpaz21.hot.corp.google.com (wpaz21.hot.corp.google.com [172.24.198.85]) by smtp-out.google.com with ESMTP id p7QHAsll007979; Fri, 26 Aug 2011 10:10:54 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1314378654; bh=Xbm+YCtEJQNIXYT0sC2uuAH5ax4=; h=Subject:To:From:Cc:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=wB9Jib1uZ8kJFIRgWL4XaRrQ0Bam6vHQ/YZnutQQ4l14Pn63uAab2n5a46G5zWYe6 WDoT82yXLGZMnUsXCk+Cw== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=subject:to:from:cc:date:message-id:user-agent: mime-version:content-type:content-transfer-encoding:x-system-of-record; b=mg/6JtUbzMrZr2GzvmeuhcybCjKJ5Lbr6w5qYhbt0xFkOjMTn4EEqmTzIZ3SK78nt SKygAwc6K6LTff1FLg1QA== Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.18.96.155]) by wpaz21.hot.corp.google.com with ESMTP id p7QHArkJ028400; Fri, 26 Aug 2011 10:10:53 -0700 Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id 279F020911; Fri, 26 Aug 2011 10:10:53 -0700 (PDT) Subject: [PATCH] ACPI, APEI, Print resource errors in conventional format To: Huang Ying From: Bjorn Helgaas Cc: linux-acpi@vger.kernel.org, Len Brown Date: Fri, 26 Aug 2011 11:10:53 -0600 Message-ID: <20110826171052.7959.94505.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-System-Of-Record: true Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 26 Aug 2011 17:11:00 +0000 (UTC) Use the normal %pR-like format for MMIO and I/O port ranges. Signed-off-by: Bjorn Helgaas Acked-by: Huang Ying --- drivers/acpi/apei/apei-base.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/apei/apei-base.c b/drivers/acpi/apei/apei-base.c index 8041248..8bd5f1a 100644 --- a/drivers/acpi/apei/apei-base.c +++ b/drivers/acpi/apei/apei-base.c @@ -460,9 +460,9 @@ int apei_resources_request(struct apei_resources *resources, desc); if (!r) { pr_err(APEI_PFX - "Can not request iomem region <%016llx-%016llx> for GARs.\n", + "Can not request [mem %#010llx-%#010llx] for %s registers\n", (unsigned long long)res->start, - (unsigned long long)res->end); + (unsigned long long)res->end - 1, desc); res_bak = res; goto err_unmap_iomem; } @@ -472,9 +472,9 @@ int apei_resources_request(struct apei_resources *resources, r = request_region(res->start, res->end - res->start, desc); if (!r) { pr_err(APEI_PFX - "Can not request ioport region <%016llx-%016llx> for GARs.\n", + "Can not request [io %#06llx-%#06llx] for %s registers\n", (unsigned long long)res->start, - (unsigned long long)res->end); + (unsigned long long)res->end - 1, desc); res_bak = res; goto err_unmap_ioport; }