|
Al Stone |
f0defa |
Use proper integer formatting
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
From: Al Stone <ahs3@redhat.com>
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
---
|
|
Al Stone |
f0defa |
source/compiler/aslcompile.c | 2 +-
|
|
Al Stone |
f0defa |
source/compiler/aslerror.c | 4 ++--
|
|
Al Stone |
f0defa |
source/compiler/aslopt.c | 2 +-
|
|
Al Stone |
f0defa |
source/compiler/aslpredef.c | 2 +-
|
|
Al Stone |
f0defa |
source/compiler/aslprepkg.c | 2 +-
|
|
Al Stone |
f0defa |
source/components/debugger/dbexec.c | 2 +-
|
|
Al Stone |
f0defa |
source/components/dispatcher/dsmthdat.c | 4 ++--
|
|
Al Stone |
f0defa |
source/components/dispatcher/dsutils.c | 2 +-
|
|
Al Stone |
f0defa |
source/components/dispatcher/dswscope.c | 4 ++--
|
|
Al Stone |
f0defa |
source/components/events/evgpe.c | 4 ++--
|
|
Al Stone |
f0defa |
source/components/executer/exdump.c | 2 +-
|
|
Al Stone |
f0defa |
source/components/executer/exfldio.c | 4 ++--
|
|
Al Stone |
f0defa |
source/components/executer/exnames.c | 4 ++--
|
|
Al Stone |
f0defa |
source/components/hardware/hwregs.c | 2 +-
|
|
Al Stone |
f0defa |
source/components/tables/tbfadt.c | 6 +++---
|
|
Al Stone |
f0defa |
source/components/tables/tbxfroot.c | 6 +++---
|
|
Al Stone |
f0defa |
source/components/utilities/utownerid.c | 2 +-
|
|
Al Stone |
f0defa |
source/tools/acpiexec/aemain.c | 2 +-
|
|
Al Stone |
f0defa |
18 files changed, 28 insertions(+), 28 deletions(-)
|
|
Al Stone |
f0defa |
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/compiler/aslcompile.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/compiler/aslcompile.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/compiler/aslcompile.c
|
|
Al Stone |
7d2a7f |
@@ -729,7 +729,7 @@ CmCleanupAndExit (
|
|
Al Stone |
d20c51 |
|
|
Al Stone |
d20c51 |
if (Gbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
|
Al Stone |
d20c51 |
{
|
|
Al Stone |
d20c51 |
- printf ("\nMaximum error count (%u) exceeded\n",
|
|
Al Stone |
d20c51 |
+ printf ("\nMaximum error count (%d) exceeded\n",
|
|
Al Stone |
d20c51 |
ASL_MAX_ERROR_COUNT);
|
|
Al Stone |
d20c51 |
}
|
|
Al Stone |
d20c51 |
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/compiler/aslerror.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/compiler/aslerror.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/compiler/aslerror.c
|
|
Al Stone |
5f1097 |
@@ -687,7 +687,7 @@ AslCommonError (
|
|
Al Stone |
d20c51 |
Gbl_ExceptionCount[Level]++;
|
|
Al Stone |
d20c51 |
if (Gbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
|
Al Stone |
d20c51 |
{
|
|
Al Stone |
d20c51 |
- printf ("\nMaximum error count (%u) exceeded\n", ASL_MAX_ERROR_COUNT);
|
|
Al Stone |
d20c51 |
+ printf ("\nMaximum error count (%d) exceeded\n", ASL_MAX_ERROR_COUNT);
|
|
Al Stone |
d20c51 |
|
|
Al Stone |
d20c51 |
Gbl_SourceLine = 0;
|
|
Al Stone |
d20c51 |
Gbl_NextError = Gbl_ErrorLog;
|
|
Al Stone |
5f1097 |
@@ -733,7 +733,7 @@ AslDisableException (
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
if (Gbl_DisabledMessagesIndex >= ASL_MAX_DISABLED_MESSAGES)
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
- printf ("Too many messages have been disabled (max %u)\n",
|
|
Al Stone |
9f52a5 |
+ printf ("Too many messages have been disabled (max %d)\n",
|
|
Al Stone |
9f52a5 |
ASL_MAX_DISABLED_MESSAGES);
|
|
Al Stone |
9f52a5 |
return (AE_LIMIT);
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/compiler/aslopt.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/compiler/aslopt.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/compiler/aslopt.c
|
|
Al Stone |
7d2a7f |
@@ -584,7 +584,7 @@ OptOptimizeNamePath (
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS,
|
|
Al Stone |
9f52a5 |
- "PATH OPTIMIZE: Line %5d ParentOp [%12.12s] ThisOp [%12.12s] ",
|
|
Al Stone |
9f52a5 |
+ "PATH OPTIMIZE: Line %5u ParentOp [%12.12s] ThisOp [%12.12s] ",
|
|
Al Stone |
9f52a5 |
Op->Asl.LogicalLineNumber,
|
|
Al Stone |
9f52a5 |
AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode),
|
|
Al Stone |
9f52a5 |
AcpiPsGetOpcodeName (Op->Common.AmlOpcode)));
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/compiler/aslpredef.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/compiler/aslpredef.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/compiler/aslpredef.c
|
|
Al Stone |
938de5 |
@@ -114,7 +114,7 @@ ApCheckForPredefinedMethod (
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
if (MethodInfo->NumArguments != 0)
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
- sprintf (MsgBuffer, "%s requires %u", Op->Asl.ExternalName, 0);
|
|
Al Stone |
9f52a5 |
+ sprintf (MsgBuffer, "%s requires %d", Op->Asl.ExternalName, 0);
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
AslError (ASL_WARNING, ASL_MSG_RESERVED_ARG_COUNT_HI, Op,
|
|
Al Stone |
9f52a5 |
MsgBuffer);
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/compiler/aslprepkg.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/compiler/aslprepkg.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/compiler/aslprepkg.c
|
|
Al Stone |
b8ecc8 |
@@ -309,7 +309,7 @@ ApCheckPackage (
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
if (Count & 1)
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
- sprintf (MsgBuffer, "%4.4s: Package length, %d, must be even.",
|
|
Al Stone |
9f52a5 |
+ sprintf (MsgBuffer, "%4.4s: Package length, %u, must be even.",
|
|
Al Stone |
9f52a5 |
Predefined->Info.Name, Count);
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH,
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/debugger/dbexec.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/debugger/dbexec.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/debugger/dbexec.c
|
|
Al Stone |
f0defa |
@@ -214,7 +214,7 @@ AcpiDbExecuteMethod (
|
|
Al Stone |
f0defa |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
f0defa |
"Possible overflow of internal debugger "
|
|
Al Stone |
f0defa |
"buffer (size 0x%X needed 0x%X)",
|
|
Al Stone |
f0defa |
- ACPI_DEBUG_BUFFER_SIZE, (UINT32) ReturnObj->Length));
|
|
Al Stone |
f0defa |
+ (UINT32) ACPI_DEBUG_BUFFER_SIZE, (UINT32) ReturnObj->Length));
|
|
Al Stone |
f0defa |
}
|
|
Al Stone |
f0defa |
}
|
|
Al Stone |
f0defa |
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/dispatcher/dsmthdat.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/dispatcher/dsmthdat.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/dispatcher/dsmthdat.c
|
|
Al Stone |
f0defa |
@@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode (
|
|
Al Stone |
f0defa |
if (Index > ACPI_METHOD_MAX_LOCAL)
|
|
Al Stone |
f0defa |
{
|
|
Al Stone |
f0defa |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
f0defa |
- "Local index %u is invalid (max %u)",
|
|
Al Stone |
f0defa |
+ "Local index %u is invalid (max %d)",
|
|
Al Stone |
f0defa |
Index, ACPI_METHOD_MAX_LOCAL));
|
|
Al Stone |
f0defa |
return_ACPI_STATUS (AE_AML_INVALID_INDEX);
|
|
Al Stone |
f0defa |
}
|
|
Al Stone |
f0defa |
@@ -306,7 +306,7 @@ AcpiDsMethodDataGetNode (
|
|
Al Stone |
f0defa |
if (Index > ACPI_METHOD_MAX_ARG)
|
|
Al Stone |
f0defa |
{
|
|
Al Stone |
f0defa |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
f0defa |
- "Arg index %u is invalid (max %u)",
|
|
Al Stone |
f0defa |
+ "Arg index %u is invalid (max %d)",
|
|
Al Stone |
f0defa |
Index, ACPI_METHOD_MAX_ARG));
|
|
Al Stone |
f0defa |
return_ACPI_STATUS (AE_AML_INVALID_INDEX);
|
|
Al Stone |
f0defa |
}
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/dispatcher/dsutils.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/dispatcher/dsutils.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/dispatcher/dsutils.c
|
|
Al Stone |
2d101c |
@@ -793,7 +793,7 @@ AcpiDsCreateOperands (
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
|
|
Al Stone |
9f52a5 |
- "NumOperands %d, ArgCount %d, Index %d\n",
|
|
Al Stone |
9f52a5 |
+ "NumOperands %d, ArgCount %u, Index %u\n",
|
|
Al Stone |
9f52a5 |
WalkState->NumOperands, ArgCount, Index));
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
/* Create the interpreter arguments, in reverse order */
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/dispatcher/dswscope.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/dispatcher/dswscope.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/dispatcher/dswscope.c
|
|
Al Stone |
5f1097 |
@@ -149,7 +149,7 @@ AcpiDsScopeStackPush (
|
|
Al Stone |
9f52a5 |
WalkState->ScopeDepth++;
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
|
|
Al Stone |
9f52a5 |
- "[%.2d] Pushed scope ", (UINT32) WalkState->ScopeDepth));
|
|
Al Stone |
9f52a5 |
+ "[%.2d] Pushed scope ", WalkState->ScopeDepth));
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
OldScopeInfo = WalkState->ScopeInfo;
|
|
Al Stone |
9f52a5 |
if (OldScopeInfo)
|
|
Al Stone |
5f1097 |
@@ -212,7 +212,7 @@ AcpiDsScopeStackPop (
|
|
Al Stone |
9f52a5 |
WalkState->ScopeDepth--;
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
|
|
Al Stone |
9f52a5 |
- "[%.2d] Popped scope [%4.4s] (%s), New scope -> ",
|
|
Al Stone |
9f52a5 |
+ "[%.2u] Popped scope [%4.4s] (%s), New scope -> ",
|
|
Al Stone |
9f52a5 |
(UINT32) WalkState->ScopeDepth,
|
|
Al Stone |
9f52a5 |
AcpiUtGetNodeName (ScopeInfo->Scope.Node),
|
|
Al Stone |
9f52a5 |
AcpiUtGetTypeName (ScopeInfo->Common.Value)));
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/events/evgpe.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/events/evgpe.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/events/evgpe.c
|
|
Al Stone |
3a82d2 |
@@ -494,7 +494,7 @@ AcpiEvGpeDetect (
|
|
Al Stone |
9f52a5 |
"Ignore disabled registers for GPE %02X-%02X: "
|
|
Al Stone |
9f52a5 |
"RunEnable=%02X, WakeEnable=%02X\n",
|
|
Al Stone |
9f52a5 |
GpeRegisterInfo->BaseGpeNumber,
|
|
Al Stone |
9f52a5 |
- GpeRegisterInfo->BaseGpeNumber + (ACPI_GPE_REGISTER_WIDTH - 1),
|
|
Al Stone |
9f52a5 |
+ (unsigned int) (GpeRegisterInfo->BaseGpeNumber + (ACPI_GPE_REGISTER_WIDTH - 1)),
|
|
Al Stone |
9f52a5 |
GpeRegisterInfo->EnableForRun,
|
|
Al Stone |
9f52a5 |
GpeRegisterInfo->EnableForWake));
|
|
Al Stone |
9f52a5 |
continue;
|
|
Al Stone |
3a82d2 |
@@ -520,7 +520,7 @@ AcpiEvGpeDetect (
|
|
Al Stone |
9f52a5 |
"Read registers for GPE %02X-%02X: Status=%02X, Enable=%02X, "
|
|
Al Stone |
9f52a5 |
"RunEnable=%02X, WakeEnable=%02X\n",
|
|
Al Stone |
9f52a5 |
GpeRegisterInfo->BaseGpeNumber,
|
|
Al Stone |
9f52a5 |
- GpeRegisterInfo->BaseGpeNumber + (ACPI_GPE_REGISTER_WIDTH - 1),
|
|
Al Stone |
9f52a5 |
+ (unsigned int) (GpeRegisterInfo->BaseGpeNumber + (ACPI_GPE_REGISTER_WIDTH - 1)),
|
|
Al Stone |
9f52a5 |
StatusReg, EnableReg,
|
|
Al Stone |
9f52a5 |
GpeRegisterInfo->EnableForRun,
|
|
Al Stone |
9f52a5 |
GpeRegisterInfo->EnableForWake));
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/executer/exdump.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/executer/exdump.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/executer/exdump.c
|
|
Al Stone |
7d2a7f |
@@ -668,7 +668,7 @@ AcpiExDumpOperand (
|
|
Al Stone |
9f52a5 |
if (Depth > 0)
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%*s[%u] %p ",
|
|
Al Stone |
9f52a5 |
- Depth, " ", Depth, ObjDesc));
|
|
Al Stone |
9f52a5 |
+ (int) Depth, " ", Depth, ObjDesc));
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
9f52a5 |
else
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/executer/exfldio.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/executer/exfldio.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/executer/exfldio.c
|
|
Al Stone |
f0defa |
@@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule (
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
f0defa |
"Unknown UpdateRule value: 0x%X",
|
|
Al Stone |
f0defa |
- (ObjDesc->CommonField.FieldFlags &
|
|
Al Stone |
f0defa |
- AML_FIELD_UPDATE_RULE_MASK)));
|
|
Al Stone |
f0defa |
+ (unsigned int) (ObjDesc->CommonField.FieldFlags &
|
|
Al Stone |
f0defa |
+ AML_FIELD_UPDATE_RULE_MASK)));
|
|
Al Stone |
f0defa |
return_ACPI_STATUS (AE_AML_OPERAND_VALUE);
|
|
Al Stone |
f0defa |
}
|
|
Al Stone |
f0defa |
}
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/executer/exnames.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/executer/exnames.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/executer/exnames.c
|
|
Al Stone |
5f1097 |
@@ -240,7 +240,7 @@ AcpiExNameSegment (
|
|
Al Stone |
9f52a5 |
*/
|
|
Al Stone |
9f52a5 |
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
|
|
Al Stone |
9f52a5 |
"Leading character is not alpha: %02Xh (not a name)\n",
|
|
Al Stone |
9f52a5 |
- CharBuf[0]));
|
|
Al Stone |
9f52a5 |
+ (unsigned int) CharBuf[0]));
|
|
Al Stone |
9f52a5 |
Status = AE_CTRL_PENDING;
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
9f52a5 |
else
|
|
Al Stone |
5f1097 |
@@ -252,7 +252,7 @@ AcpiExNameSegment (
|
|
Al Stone |
9f52a5 |
Status = AE_AML_BAD_NAME;
|
|
Al Stone |
9f52a5 |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
9f52a5 |
"Bad character 0x%02x in name, at %p",
|
|
Al Stone |
9f52a5 |
- *AmlAddress, AmlAddress));
|
|
Al Stone |
9f52a5 |
+ (unsigned int) (*AmlAddress), AmlAddress));
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
*InAmlAddress = ACPI_CAST_PTR (UINT8, AmlAddress);
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/hardware/hwregs.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/hardware/hwregs.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/hardware/hwregs.c
|
|
Al Stone |
2d101c |
@@ -300,7 +300,7 @@ AcpiHwClearAcpiStatus (
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
ACPI_DEBUG_PRINT ((ACPI_DB_IO, "About to write %04X to %8.8X%8.8X\n",
|
|
Al Stone |
f0defa |
- ACPI_BITMASK_ALL_FIXED_STATUS,
|
|
Al Stone |
f0defa |
+ (UINT32) ACPI_BITMASK_ALL_FIXED_STATUS,
|
|
Al Stone |
f0defa |
ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address)));
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock);
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/tables/tbfadt.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/tables/tbfadt.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/tables/tbfadt.c
|
|
Al Stone |
938de5 |
@@ -233,7 +233,7 @@ AcpiTbInitGenericAddress (
|
|
Al Stone |
9f52a5 |
if (!(Flags & ACPI_FADT_GPE_REGISTER))
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
9f52a5 |
- "%s - 32-bit FADT register is too long (%u bytes, %u bits) "
|
|
Al Stone |
9f52a5 |
+ "%s - 32-bit FADT register is too long (%u bytes, %d bits) "
|
|
Al Stone |
9f52a5 |
"to convert to GAS struct - 255 bits max, truncating",
|
|
Al Stone |
9f52a5 |
RegisterName, ByteWidth, (ByteWidth * 8)));
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
938de5 |
@@ -304,7 +304,7 @@ AcpiTbSelectAddress (
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
ACPI_BIOS_WARNING ((AE_INFO,
|
|
Al Stone |
9f52a5 |
"32/64X %s address mismatch in FADT: "
|
|
Al Stone |
9f52a5 |
- "0x%8.8X/0x%8.8X%8.8X, using %u-bit address",
|
|
Al Stone |
9f52a5 |
+ "0x%8.8X/0x%8.8X%8.8X, using %d-bit address",
|
|
Al Stone |
9f52a5 |
RegisterName, Address32, ACPI_FORMAT_UINT64 (Address64),
|
|
Al Stone |
9f52a5 |
AcpiGbl_Use32BitFadtAddresses ? 32 : 64));
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
3a82d2 |
@@ -621,7 +621,7 @@ AcpiTbConvertFadt (
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
3a82d2 |
ACPI_BIOS_WARNING ((AE_INFO,
|
|
Al Stone |
3a82d2 |
"32/64X address mismatch in FADT/%s: "
|
|
Al Stone |
3a82d2 |
- "0x%8.8X/0x%8.8X%8.8X, using %u-bit address",
|
|
Al Stone |
3a82d2 |
+ "0x%8.8X/0x%8.8X%8.8X, using %d-bit address",
|
|
Al Stone |
3a82d2 |
Name, Address32,
|
|
Al Stone |
3a82d2 |
ACPI_FORMAT_UINT64 (Address64->Address),
|
|
Al Stone |
3a82d2 |
AcpiGbl_Use32BitFadtAddresses ? 32 : 64));
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/tables/tbxfroot.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/tables/tbxfroot.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/tables/tbxfroot.c
|
|
Al Stone |
938de5 |
@@ -177,7 +177,7 @@ AcpiFindRootPointer (
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
9f52a5 |
"Could not map memory at 0x%8.8X for length %u",
|
|
Al Stone |
9f52a5 |
- ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH));
|
|
Al Stone |
9f52a5 |
+ (UINT32) ACPI_EBDA_PTR_LOCATION, (UINT32) ACPI_EBDA_PTR_LENGTH));
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
return_ACPI_STATUS (AE_NO_MEMORY);
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
938de5 |
@@ -204,7 +204,7 @@ AcpiFindRootPointer (
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
9f52a5 |
"Could not map memory at 0x%8.8X for length %u",
|
|
Al Stone |
9f52a5 |
- PhysicalAddress, ACPI_EBDA_WINDOW_SIZE));
|
|
Al Stone |
9f52a5 |
+ PhysicalAddress, (UINT32) ACPI_EBDA_WINDOW_SIZE));
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
return_ACPI_STATUS (AE_NO_MEMORY);
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
5f1097 |
@@ -236,7 +236,7 @@ AcpiFindRootPointer (
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
9f52a5 |
"Could not map memory at 0x%8.8X for length %u",
|
|
Al Stone |
9f52a5 |
- ACPI_HI_RSDP_WINDOW_BASE, ACPI_HI_RSDP_WINDOW_SIZE));
|
|
Al Stone |
9f52a5 |
+ (UINT32) ACPI_HI_RSDP_WINDOW_BASE, (UINT32) ACPI_HI_RSDP_WINDOW_SIZE));
|
|
Al Stone |
9f52a5 |
|
|
Al Stone |
9f52a5 |
return_ACPI_STATUS (AE_NO_MEMORY);
|
|
Al Stone |
9f52a5 |
}
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/components/utilities/utownerid.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/components/utilities/utownerid.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/components/utilities/utownerid.c
|
|
Al Stone |
5f1097 |
@@ -231,7 +231,7 @@ AcpiUtReleaseOwnerId (
|
|
Al Stone |
9f52a5 |
else
|
|
Al Stone |
9f52a5 |
{
|
|
Al Stone |
9f52a5 |
ACPI_ERROR ((AE_INFO,
|
|
Al Stone |
9f52a5 |
- "Release of non-allocated OwnerId: 0x%2.2X", OwnerId + 1));
|
|
Al Stone |
9f52a5 |
+ "Release of non-allocated OwnerId: 0x%2.2X", (UINT32) OwnerId + 1));
|
|
Al Stone |
d20c51 |
}
|
|
Al Stone |
d20c51 |
|
|
Al Stone |
9f52a5 |
(void) AcpiUtReleaseMutex (ACPI_MTX_CACHES);
|
|
Al Stone |
3a82d2 |
Index: acpica-unix2-20160831/source/tools/acpiexec/aemain.c
|
|
Al Stone |
7d2a7f |
===================================================================
|
|
Al Stone |
3a82d2 |
--- acpica-unix2-20160831.orig/source/tools/acpiexec/aemain.c
|
|
Al Stone |
3a82d2 |
+++ acpica-unix2-20160831/source/tools/acpiexec/aemain.c
|
|
Al Stone |
3a82d2 |
@@ -207,7 +207,7 @@ AeDoOptions (
|
|
Al Stone |
f0defa |
|
|
Al Stone |
f0defa |
if (strlen (AcpiGbl_Optarg) > (AE_BUFFER_SIZE -1))
|
|
Al Stone |
f0defa |
{
|
|
Al Stone |
f0defa |
- printf ("**** The length of command line (%u) exceeded maximum (%u)\n",
|
|
Al Stone |
f0defa |
+ printf ("**** The length of command line (%u) exceeded maximum (%d)\n",
|
|
Al Stone |
f0defa |
(UINT32) strlen (AcpiGbl_Optarg), (AE_BUFFER_SIZE -1));
|
|
Al Stone |
f0defa |
return (-1);
|
|
Al Stone |
f0defa |
}
|