Re: [Devel] [PATCH] ACPICA: exfield: minor format change in error message (fwd)
by Chumbalkar, Nagananda
[PATCH v2] ACPICA: exfield: minor format change in error message
Change %X to %u.
V1->V2:
%d to %u
Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar(a)hp.com>
diff --git a/drivers/acpi/acpica/exfield.c b/drivers/acpi/acpica/exfield.c
index 1588a2d..b9400e7 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 %u, found length %u",
length, source_desc->buffer.length));
return_ACPI_STATUS(AE_AML_BUFFER_LIMIT);
-----Original Message-----
From: Moore, Robert [mailto:robert.moore@intel.com]
Sent: Friday, February 19, 2010 1:49 AM
To: Len Brown; devel(a)acpica.org
Cc: linux-acpi(a)vger.kernel.org; Chumbalkar, Nagananda
Subject: RE: [Devel] [PATCH] ACPICA: exfield: minor format
change in error message (fwd)
Yes.
One nit:
+ "length %d, found length %d",
We usually use %u on these:
+ "length %u, found length %u",
>-----Original Message-----
>From: devel-bounces(a)acpica.org
[mailto:devel-bounces@acpica.org] On Behalf
>Of Len Brown
>Sent: Thursday, February 18, 2010 10:43 PM
>To: devel(a)acpica.org
>Cc: linux-acpi(a)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
>
10 years, 12 months
[PATCH] ACPICA: exfield: minor format change in error message (fwd)
by Len Brown
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(a)hp.com>
To: len.brown(a)intel.com
Cc: linux-acpi(a)vger.kernel.org, Naga Chumbalkar <nagananda.chumbalkar(a)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(a)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(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
11 years
How to read ACPI table from Linux application
by chittaraiah pabba
Hi,
I am new to ACPICA community. We are planning to use ACPICA API's in one
of power management application to get ACPI Processor block information
from dsdt file in Linux server.
I am planning to use ACPICA libraries to read ACPI Processor block
information from Linux application. Information like: processor
supported P-states and power usage of p states
We wrote small application to initialize ACPI tables but it's failing
and saw below error:
////////////////////
ACPI Exception: AE_NOT_FOUND, While initializing Table Manager
(20091214/examples-247)
ACPI example
examples-0206 [00] main : Example Debug output
ACPI: ACPICA example info message
ACPI Warning: ACPICA example warning message (20091214/examples-211)
ACPI Error: ACPICA example error message (20091214/examples-212)
ACPI Exception: AE_AML_OPERAND_TYPE, Example exception message
(20091214/examples-213)
ACPI: Executing OSI method
ACPI: _OSI returned FFFFFFFF
///////////////////////////////////////////
Can anyone guide me how to read processor information block dsdt file
with ACPICA code?
--Chittari
The information contained in this message may be confidential and proprietary to American Megatrends, Inc. This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.
11 years