All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI, APEI, Print resource errors in conventional format
@ 2011-08-26 17:10 Bjorn Helgaas
  2011-08-29  0:49 ` Huang Ying
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2011-08-26 17:10 UTC (permalink / raw)
  To: Huang Ying; +Cc: linux-acpi, Len Brown

Use the normal %pR-like format for MMIO and I/O port ranges.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/acpi/apei/apei-base.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

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;
 		}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ACPI, APEI, Print resource errors in conventional format
  2011-08-26 17:10 [PATCH] ACPI, APEI, Print resource errors in conventional format Bjorn Helgaas
@ 2011-08-29  0:49 ` Huang Ying
  2011-08-29 14:08   ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Huang Ying @ 2011-08-29  0:49 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-acpi, Len Brown

On 08/27/2011 01:10 AM, Bjorn Helgaas wrote:
> Use the normal %pR-like format for MMIO and I/O port ranges.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  drivers/acpi/apei/apei-base.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> 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",

Why %#010llx instead of %#016llx?

Best Regards,
Huang Ying

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ACPI, APEI, Print resource errors in conventional format
  2011-08-29  0:49 ` Huang Ying
@ 2011-08-29 14:08   ` Bjorn Helgaas
  2011-08-30  0:41     ` Huang Ying
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2011-08-29 14:08 UTC (permalink / raw)
  To: Huang Ying; +Cc: linux-acpi, Len Brown

On Sun, Aug 28, 2011 at 6:49 PM, Huang Ying <ying.huang@intel.com> wrote:
> On 08/27/2011 01:10 AM, Bjorn Helgaas wrote:
>> Use the normal %pR-like format for MMIO and I/O port ranges.
>>
>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>> ---
>>  drivers/acpi/apei/apei-base.c |    8 ++++----
>>  1 files changed, 4 insertions(+), 4 deletions(-)
>>
>> 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",
>
> Why %#010llx instead of %#016llx?

Because %#010llx is effectively what we use for %pR.  Two characters
for "0x", then eight for the value.  IMHO, sixteen uninterrupted hex
characters is too hard to read.

Bjorn
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ACPI, APEI, Print resource errors in conventional format
  2011-08-29 14:08   ` Bjorn Helgaas
@ 2011-08-30  0:41     ` Huang Ying
  2011-08-30 16:32       ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Huang Ying @ 2011-08-30  0:41 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-acpi, Len Brown

On 08/29/2011 10:08 PM, Bjorn Helgaas wrote:
> On Sun, Aug 28, 2011 at 6:49 PM, Huang Ying <ying.huang@intel.com> wrote:
>> On 08/27/2011 01:10 AM, Bjorn Helgaas wrote:
>>> Use the normal %pR-like format for MMIO and I/O port ranges.
>>>
>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>> ---
>>>  drivers/acpi/apei/apei-base.c |    8 ++++----
>>>  1 files changed, 4 insertions(+), 4 deletions(-)
>>>
>>> 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",
>>
>> Why %#010llx instead of %#016llx?
> 
> Because %#010llx is effectively what we use for %pR.  Two characters
> for "0x", then eight for the value.  IMHO, sixteen uninterrupted hex
> characters is too hard to read.

That is reasonable. Thanks.

Acked-by: Huang Ying <ying.huang@intel.com>

Best Regards,
Huang Ying

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ACPI, APEI, Print resource errors in conventional format
  2011-08-30  0:41     ` Huang Ying
@ 2011-08-30 16:32       ` Bjorn Helgaas
  0 siblings, 0 replies; 5+ messages in thread
From: Bjorn Helgaas @ 2011-08-30 16:32 UTC (permalink / raw)
  To: Huang Ying; +Cc: linux-acpi, Len Brown

On Mon, Aug 29, 2011 at 6:41 PM, Huang Ying <ying.huang@intel.com> wrote:
> On 08/29/2011 10:08 PM, Bjorn Helgaas wrote:
>> On Sun, Aug 28, 2011 at 6:49 PM, Huang Ying <ying.huang@intel.com> wrote:
>>> On 08/27/2011 01:10 AM, Bjorn Helgaas wrote:
>>>> Use the normal %pR-like format for MMIO and I/O port ranges.
>>>>
>>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>> ---
>>>>  drivers/acpi/apei/apei-base.c |    8 ++++----
>>>>  1 files changed, 4 insertions(+), 4 deletions(-)
>>>>
>>>> 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",
>>>
>>> Why %#010llx instead of %#016llx?
>>
>> Because %#010llx is effectively what we use for %pR.  Two characters
>> for "0x", then eight for the value.  IMHO, sixteen uninterrupted hex
>> characters is too hard to read.
>
> That is reasonable. Thanks.
>
> Acked-by: Huang Ying <ying.huang@intel.com>

Disregard this patch; I'll send a v2 that does the same for another APEI file.
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-30 16:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-26 17:10 [PATCH] ACPI, APEI, Print resource errors in conventional format Bjorn Helgaas
2011-08-29  0:49 ` Huang Ying
2011-08-29 14:08   ` Bjorn Helgaas
2011-08-30  0:41     ` Huang Ying
2011-08-30 16:32       ` Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.