* [PATCH] ACPICA: exfield: minor format change in error message (fwd)
@ 2010-02-19 6:42 Len Brown
2010-02-19 7:48 ` [Devel] " Moore, Robert
0 siblings, 1 reply; 2+ messages in thread
From: Len Brown @ 2010-02-19 6:42 UTC (permalink / raw)
To: devel; +Cc: linux-acpi, Naga Chumbalkar
Bob,
one for you.
thanks,
Len Brown, Intel Open Source Technology Center
---------- Forwarded message ----------
Date: Wed, 17 Feb 2010 03:13:27 +0000 (UTC)
From: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
To: len.brown@intel.com
Cc: linux-acpi@vger.kernel.org, Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Subject: [PATCH] ACPICA: exfield: minor format change in error message
Found this while debugging a problem. Trivial, but useful, format change.
Before:
ACPI Error: SMBus or IPMI write requires Buffer of length 42, found length 20
(20091214/exfield-285)
After:
ACPI Error: SMBus or IPMI write requires Buffer of length 66, found length 32
(20091214/exfield-286)
Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
diff --git a/drivers/acpi/acpica/exfield.c b/drivers/acpi/acpica/exfield.c
index 1588a2d..be2b03a 100644
--- a/drivers/acpi/acpica/exfield.c
+++ b/drivers/acpi/acpica/exfield.c
@@ -281,7 +281,8 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,
if (source_desc->buffer.length < length) {
ACPI_ERROR((AE_INFO,
- "SMBus or IPMI write requires Buffer of length %X, found length %X",
+ "SMBus or IPMI write requires Buffer of "
+ "length %d, found length %d",
length, source_desc->buffer.length));
return_ACPI_STATUS(AE_AML_BUFFER_LIMIT);
--
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 related [flat|nested] 2+ messages in thread
* RE: [Devel] [PATCH] ACPICA: exfield: minor format change in error message (fwd)
2010-02-19 6:42 [PATCH] ACPICA: exfield: minor format change in error message (fwd) Len Brown
@ 2010-02-19 7:48 ` Moore, Robert
0 siblings, 0 replies; 2+ messages in thread
From: Moore, Robert @ 2010-02-19 7:48 UTC (permalink / raw)
To: Len Brown, devel@acpica.org; +Cc: linux-acpi@vger.kernel.org, Naga Chumbalkar
Yes.
One nit:
+ "length %d, found length %d",
We usually use %u on these:
+ "length %u, found length %u",
>-----Original Message-----
>From: devel-bounces@acpica.org [mailto:devel-bounces@acpica.org] On Behalf
>Of Len Brown
>Sent: Thursday, February 18, 2010 10:43 PM
>To: devel@acpica.org
>Cc: linux-acpi@vger.kernel.org; Naga Chumbalkar
>Subject: [Devel] [PATCH] ACPICA: exfield: minor format change in error
>message (fwd)
>
>Bob,
>one for you.
>
>thanks,
>Len Brown, Intel Open Source Technology Center
>
>---------- Forwarded message ----------
>Date: Wed, 17 Feb 2010 03:13:27 +0000 (UTC)
>From: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
>To: len.brown@intel.com
>Cc: linux-acpi@vger.kernel.org, Naga Chumbalkar
><nagananda.chumbalkar@hp.com>
>Subject: [PATCH] ACPICA: exfield: minor format change in error message
>
>Found this while debugging a problem. Trivial, but useful, format change.
>
>Before:
>ACPI Error: SMBus or IPMI write requires Buffer of length 42, found length
>20
>(20091214/exfield-285)
>
>After:
>ACPI Error: SMBus or IPMI write requires Buffer of length 66, found length
>32
>(20091214/exfield-286)
>
>Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
>
>diff --git a/drivers/acpi/acpica/exfield.c b/drivers/acpi/acpica/exfield.c
>index 1588a2d..be2b03a 100644
>--- a/drivers/acpi/acpica/exfield.c
>+++ b/drivers/acpi/acpica/exfield.c
>@@ -281,7 +281,8 @@ acpi_ex_write_data_to_field(union acpi_operand_object
>*source_desc,
>
> if (source_desc->buffer.length < length) {
> ACPI_ERROR((AE_INFO,
>- "SMBus or IPMI write requires Buffer of length
>%X, found length %X",
>+ "SMBus or IPMI write requires Buffer of "
>+ "length %d, found length %d",
> length, source_desc->buffer.length));
>
> return_ACPI_STATUS(AE_AML_BUFFER_LIMIT);
>--
>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
>_______________________________________________
>Devel mailing list
>Devel@acpica.org
>http://lists.acpica.org/listinfo/devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-19 7:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 6:42 [PATCH] ACPICA: exfield: minor format change in error message (fwd) Len Brown
2010-02-19 7:48 ` [Devel] " Moore, Robert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox