Core: Replace all %d format specifiers with %u (unsigned).

With only a few exceptions, ACPICA does not use signed integers.
Therefore, %d is incorrect.
This commit is contained in:
Robert Moore 2010-05-20 10:22:16 -07:00
parent 89f72c1af3
commit 3929a1f9a2
22 changed files with 54 additions and 54 deletions

View File

@ -477,7 +477,7 @@ AcpiDbCheckPredefinedNames (
(void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
AcpiDbWalkForPredefinedNames, NULL, (void *) &Count, NULL); AcpiDbWalkForPredefinedNames, NULL, (void *) &Count, NULL);
AcpiOsPrintf ("Found %d predefined names in the namespace\n", Count); AcpiOsPrintf ("Found %u predefined names in the namespace\n", Count);
} }
@ -619,7 +619,7 @@ AcpiDbBatchExecute (
(void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
AcpiDbWalkForExecute, NULL, (void *) &Info, NULL); AcpiDbWalkForExecute, NULL, (void *) &Info, NULL);
AcpiOsPrintf ("Executed %d predefined names in the namespace\n", Info.Count); AcpiOsPrintf ("Executed %u predefined names in the namespace\n", Info.Count);
} }
@ -678,7 +678,7 @@ AcpiDbDisplayTableInfo (
for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++)
{ {
TableDesc = &AcpiGbl_RootTableList.Tables[i]; TableDesc = &AcpiGbl_RootTableList.Tables[i];
AcpiOsPrintf ("%d ", i); AcpiOsPrintf ("%u ", i);
/* Make sure that the table is mapped */ /* Make sure that the table is mapped */
@ -1178,7 +1178,7 @@ AcpiDbSetMethodData (
if (Index > ACPI_METHOD_MAX_ARG) if (Index > ACPI_METHOD_MAX_ARG)
{ {
AcpiOsPrintf ("Arg%d - Invalid argument name\n", Index); AcpiOsPrintf ("Arg%u - Invalid argument name\n", Index);
goto Cleanup; goto Cleanup;
} }
@ -1191,7 +1191,7 @@ AcpiDbSetMethodData (
ObjDesc = WalkState->Arguments[Index].Object; ObjDesc = WalkState->Arguments[Index].Object;
AcpiOsPrintf ("Arg%d: ", Index); AcpiOsPrintf ("Arg%u: ", Index);
AcpiDmDisplayInternalObject (ObjDesc, WalkState); AcpiDmDisplayInternalObject (ObjDesc, WalkState);
break; break;
@ -1201,7 +1201,7 @@ AcpiDbSetMethodData (
if (Index > ACPI_METHOD_MAX_LOCAL) if (Index > ACPI_METHOD_MAX_LOCAL)
{ {
AcpiOsPrintf ("Local%d - Invalid local variable name\n", Index); AcpiOsPrintf ("Local%u - Invalid local variable name\n", Index);
goto Cleanup; goto Cleanup;
} }
@ -1214,7 +1214,7 @@ AcpiDbSetMethodData (
ObjDesc = WalkState->LocalVariables[Index].Object; ObjDesc = WalkState->LocalVariables[Index].Object;
AcpiOsPrintf ("Local%d: ", Index); AcpiOsPrintf ("Local%u: ", Index);
AcpiDmDisplayInternalObject (ObjDesc, WalkState); AcpiDmDisplayInternalObject (ObjDesc, WalkState);
break; break;
@ -1938,7 +1938,7 @@ AcpiDbCheckIntegrity (
(void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
AcpiDbIntegrityWalk, NULL, (void *) &Info, NULL); AcpiDbIntegrityWalk, NULL, (void *) &Info, NULL);
AcpiOsPrintf ("Verified %d namespace nodes with %d Objects\n", AcpiOsPrintf ("Verified %u namespace nodes with %u Objects\n",
Info.Nodes, Info.Objects); Info.Nodes, Info.Objects);
} }

View File

@ -612,7 +612,7 @@ AcpiDbDisplayResults (
for (i = 0; i < ResultCount; i++) for (i = 0; i < ResultCount; i++)
{ {
ObjDesc = Frame->Results.ObjDesc[Index]; ObjDesc = Frame->Results.ObjDesc[Index];
AcpiOsPrintf ("Result%d: ", i); AcpiOsPrintf ("Result%u: ", i);
AcpiDmDisplayInternalObject (ObjDesc, WalkState); AcpiDmDisplayInternalObject (ObjDesc, WalkState);
if (Index == 0) if (Index == 0)
{ {
@ -722,7 +722,7 @@ AcpiDbDisplayObjectType (
{ {
for (i = 0; i < Info->CompatibleIdList.Count; i++) for (i = 0; i < Info->CompatibleIdList.Count; i++)
{ {
AcpiOsPrintf ("CID %d: %s\n", i, AcpiOsPrintf ("CID %u: %s\n", i,
Info->CompatibleIdList.Ids[i].String); Info->CompatibleIdList.Ids[i].String);
} }
} }
@ -854,7 +854,7 @@ AcpiDbDisplayGpes (
GpeType = "GPE Block Device"; GpeType = "GPE Block Device";
} }
AcpiOsPrintf ("\nBlock %d - Info %p DeviceNode %p [%s] - %s\n", AcpiOsPrintf ("\nBlock %u - Info %p DeviceNode %p [%s] - %s\n",
Block, GpeBlock, GpeBlock->Node, Buffer, GpeType); Block, GpeBlock, GpeBlock->Node, Buffer, GpeType);
AcpiOsPrintf (" Registers: %u (%u GPEs)\n", AcpiOsPrintf (" Registers: %u (%u GPEs)\n",

View File

@ -602,7 +602,7 @@ AcpiDbMethodThread (
#if 0 #if 0
if ((i % 100) == 0) if ((i % 100) == 0)
{ {
AcpiOsPrintf ("%d executions, Thread 0x%x\n", i, AcpiOsGetThreadId ()); AcpiOsPrintf ("%u executions, Thread 0x%x\n", i, AcpiOsGetThreadId ());
} }
if (ReturnObj.Length) if (ReturnObj.Length)

View File

@ -289,7 +289,7 @@ AcpiDbCheckTextModeCorruption (
* meaning that we cannot simply replace CR/LF pairs with LFs. * meaning that we cannot simply replace CR/LF pairs with LFs.
*/ */
AcpiOsPrintf ("Table has been corrupted by text mode conversion\n"); AcpiOsPrintf ("Table has been corrupted by text mode conversion\n");
AcpiOsPrintf ("All LFs (%d) were changed to CR/LF pairs\n", Pairs); AcpiOsPrintf ("All LFs (%u) were changed to CR/LF pairs\n", Pairs);
AcpiOsPrintf ("Table cannot be repaired!\n"); AcpiOsPrintf ("Table cannot be repaired!\n");
return (AE_BAD_VALUE); return (AE_BAD_VALUE);
} }

View File

@ -284,7 +284,7 @@ AcpiDbGetFromHistory (
} }
} }
AcpiOsPrintf ("Invalid history number: %d\n", HistoryIndex); AcpiOsPrintf ("Invalid history number: %u\n", HistoryIndex);
return (NULL); return (NULL);
} }

View File

@ -613,7 +613,7 @@ AcpiDbCommandDispatch (
if (ParamCount < AcpiGbl_DbCommands[CommandIndex].MinArgs) if (ParamCount < AcpiGbl_DbCommands[CommandIndex].MinArgs)
{ {
AcpiOsPrintf ("%d parameters entered, [%s] requires %d parameters\n", AcpiOsPrintf ("%u parameters entered, [%s] requires %u parameters\n",
ParamCount, AcpiGbl_DbCommands[CommandIndex].Name, ParamCount, AcpiGbl_DbCommands[CommandIndex].Name,
AcpiGbl_DbCommands[CommandIndex].MinArgs); AcpiGbl_DbCommands[CommandIndex].MinArgs);

View File

@ -291,7 +291,7 @@ AcpiDbDumpExternalObject (
case ACPI_TYPE_PACKAGE: case ACPI_TYPE_PACKAGE:
AcpiOsPrintf ("[Package] Contains %d Elements:\n", AcpiOsPrintf ("[Package] Contains %u Elements:\n",
ObjDesc->Package.Count); ObjDesc->Package.Count);
for (i = 0; i < ObjDesc->Package.Count; i++) for (i = 0; i < ObjDesc->Package.Count; i++)

View File

@ -289,7 +289,7 @@ AcpiDmDecodeInternalObject (
case ACPI_TYPE_STRING: case ACPI_TYPE_STRING:
AcpiOsPrintf ("(%d) \"%.24s", AcpiOsPrintf ("(%u) \"%.24s",
ObjDesc->String.Length, ObjDesc->String.Pointer); ObjDesc->String.Length, ObjDesc->String.Pointer);
if (ObjDesc->String.Length > 24) if (ObjDesc->String.Length > 24)
@ -305,7 +305,7 @@ AcpiDmDecodeInternalObject (
case ACPI_TYPE_BUFFER: case ACPI_TYPE_BUFFER:
AcpiOsPrintf ("(%d)", ObjDesc->Buffer.Length); AcpiOsPrintf ("(%u)", ObjDesc->Buffer.Length);
for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++) for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++)
{ {
AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]); AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]);
@ -651,7 +651,7 @@ AcpiDmDisplayArguments (
for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++)
{ {
ObjDesc = WalkState->Arguments[i].Object; ObjDesc = WalkState->Arguments[i].Object;
AcpiOsPrintf (" Arg%d: ", i); AcpiOsPrintf (" Arg%u: ", i);
AcpiDmDisplayInternalObject (ObjDesc, WalkState); AcpiDmDisplayInternalObject (ObjDesc, WalkState);
} }
} }

View File

@ -163,7 +163,7 @@ AcpiDmMethodFlags (
/* 1) Method argument count */ /* 1) Method argument count */
AcpiOsPrintf (", %d, ", Args); AcpiOsPrintf (", %u, ", Args);
/* 2) Serialize rule */ /* 2) Serialize rule */
@ -178,7 +178,7 @@ AcpiDmMethodFlags (
if (Flags & 0xF0) if (Flags & 0xF0)
{ {
AcpiOsPrintf (", %d", Flags >> 4); AcpiOsPrintf (", %u", Flags >> 4);
} }
} }
@ -550,7 +550,7 @@ AcpiDmDisassembleOneOp (
case AML_INT_NAMEDFIELD_OP: case AML_INT_NAMEDFIELD_OP:
Length = AcpiDmDumpName (Op->Named.Name); Length = AcpiDmDumpName (Op->Named.Name);
AcpiOsPrintf (",%*.s %d", (int) (5 - Length), " ", AcpiOsPrintf (",%*.s %u", (unsigned) (5 - Length), " ",
(UINT32) Op->Common.Value.Integer); (UINT32) Op->Common.Value.Integer);
AcpiDmCommaIfFieldMember (Op); AcpiDmCommaIfFieldMember (Op);
@ -571,7 +571,7 @@ AcpiDmDisassembleOneOp (
} }
else else
{ {
AcpiOsPrintf (" , %d", Offset); AcpiOsPrintf (" , %u", Offset);
} }
AcpiDmCommaIfFieldMember (Op); AcpiDmCommaIfFieldMember (Op);

View File

@ -290,7 +290,7 @@ AcpiDmBitList (
AcpiOsPrintf (","); AcpiOsPrintf (",");
} }
Previous = TRUE; Previous = TRUE;
AcpiOsPrintf ("%d", i); AcpiOsPrintf ("%u", i);
} }
Mask >>= 1; Mask >>= 1;

View File

@ -736,7 +736,7 @@ AcpiDsTerminateControlMethod (
* we immediately reuse it for the next thread executing this method * we immediately reuse it for the next thread executing this method
*/ */
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
"*** Completed execution of one thread, %d threads remaining\n", "*** Completed execution of one thread, %u threads remaining\n",
MethodDesc->Method.ThreadCount)); MethodDesc->Method.ThreadCount));
} }
else else

View File

@ -238,7 +238,7 @@ AcpiDsMethodDataDeleteAll (
{ {
if (WalkState->LocalVariables[Index].Object) if (WalkState->LocalVariables[Index].Object)
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Local%d=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Local%u=%p\n",
Index, WalkState->LocalVariables[Index].Object)); Index, WalkState->LocalVariables[Index].Object));
/* Detach object (if present) and remove a reference */ /* Detach object (if present) and remove a reference */
@ -253,7 +253,7 @@ AcpiDsMethodDataDeleteAll (
{ {
if (WalkState->Arguments[Index].Object) if (WalkState->Arguments[Index].Object)
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Arg%d=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Arg%u=%p\n",
Index, WalkState->Arguments[Index].Object)); Index, WalkState->Arguments[Index].Object));
/* Detach object (if present) and remove a reference */ /* Detach object (if present) and remove a reference */
@ -322,7 +322,7 @@ AcpiDsMethodDataInitArgs (
Index++; Index++;
} }
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%d args passed to method\n", Index)); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%u args passed to method\n", Index));
return_ACPI_STATUS (AE_OK); return_ACPI_STATUS (AE_OK);
} }
@ -429,7 +429,7 @@ AcpiDsMethodDataSetValue (
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"NewObj %p Type %2.2X, Refs=%d [%s]\n", Object, "NewObj %p Type %2.2X, Refs=%u [%s]\n", Object,
Type, Object->Common.ReferenceCount, Type, Object->Common.ReferenceCount,
AcpiUtGetTypeName (Object->Common.Type))); AcpiUtGetTypeName (Object->Common.Type)));
@ -667,7 +667,7 @@ AcpiDsStoreObjectToLocal (
ACPI_FUNCTION_TRACE (DsStoreObjectToLocal); ACPI_FUNCTION_TRACE (DsStoreObjectToLocal);
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Type=%2.2X Index=%d Obj=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Type=%2.2X Index=%u Obj=%p\n",
Type, Index, ObjDesc)); Type, Index, ObjDesc));
/* Parameter validation */ /* Parameter validation */

View File

@ -875,7 +875,7 @@ AcpiDsCreateOperands (
Index--; Index--;
ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Arg #%d (%p) done, Arg1=%p\n", ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Arg #%u (%p) done, Arg1=%p\n",
Index, Arg, FirstArg)); Index, Arg, FirstArg));
} }
@ -890,7 +890,7 @@ Cleanup:
*/ */
AcpiDsObjStackPopAndDelete (ArgCount, WalkState); AcpiDsObjStackPopAndDelete (ArgCount, WalkState);
ACPI_EXCEPTION ((AE_INFO, Status, "While creating Arg %d", Index)); ACPI_EXCEPTION ((AE_INFO, Status, "While creating Arg %u", Index));
return_ACPI_STATUS (Status); return_ACPI_STATUS (Status);
} }

View File

@ -864,7 +864,7 @@ AcpiExDumpOperands (
} }
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"**** Start operand dump for opcode [%s], %d operands\n", "**** Start operand dump for opcode [%s], %u operands\n",
OpcodeName, NumOperands)); OpcodeName, NumOperands));
if (NumOperands == 0) if (NumOperands == 0)
@ -1096,7 +1096,7 @@ AcpiExDumpPackageObj (
case ACPI_TYPE_PACKAGE: case ACPI_TYPE_PACKAGE:
AcpiOsPrintf ("[Package] Contains %d Elements:\n", AcpiOsPrintf ("[Package] Contains %u Elements:\n",
ObjDesc->Package.Count); ObjDesc->Package.Count);
for (i = 0; i < ObjDesc->Package.Count; i++) for (i = 0; i < ObjDesc->Package.Count; i++)

View File

@ -644,14 +644,14 @@ AcpiExFieldDatumIo (
if (ReadWrite == ACPI_READ) if (ReadWrite == ACPI_READ)
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Value Read %8.8X%8.8X, Width %d\n", "Value Read %8.8X%8.8X, Width %u\n",
ACPI_FORMAT_UINT64 (*Value), ACPI_FORMAT_UINT64 (*Value),
ObjDesc->CommonField.AccessByteWidth)); ObjDesc->CommonField.AccessByteWidth));
} }
else else
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Value Written %8.8X%8.8X, Width %d\n", "Value Written %8.8X%8.8X, Width %u\n",
ACPI_FORMAT_UINT64 (*Value), ACPI_FORMAT_UINT64 (*Value),
ObjDesc->CommonField.AccessByteWidth)); ObjDesc->CommonField.AccessByteWidth));
} }

View File

@ -193,11 +193,11 @@ AcpiExGenerateAccess (
FieldByteLength = FieldByteEndOffset - FieldByteOffset; FieldByteLength = FieldByteEndOffset - FieldByteOffset;
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Bit length %d, Bit offset %d\n", "Bit length %u, Bit offset %u\n",
FieldBitLength, FieldBitOffset)); FieldBitLength, FieldBitOffset));
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Byte Length %d, Byte Offset %d, End Offset %d\n", "Byte Length %u, Byte Offset %u, End Offset %u\n",
FieldByteLength, FieldByteOffset, FieldByteEndOffset)); FieldByteLength, FieldByteOffset, FieldByteEndOffset));
/* /*
@ -228,10 +228,10 @@ AcpiExGenerateAccess (
Accesses = FieldEndOffset - FieldStartOffset; Accesses = FieldEndOffset - FieldStartOffset;
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"AccessWidth %d end is within region\n", AccessByteWidth)); "AccessWidth %u end is within region\n", AccessByteWidth));
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Field Start %d, Field End %d -- requires %d accesses\n", "Field Start %u, Field End %u -- requires %u accesses\n",
FieldStartOffset, FieldEndOffset, Accesses)); FieldStartOffset, FieldEndOffset, Accesses));
/* Single access is optimal */ /* Single access is optimal */
@ -239,7 +239,7 @@ AcpiExGenerateAccess (
if (Accesses <= 1) if (Accesses <= 1)
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Entire field can be accessed with one operation of size %d\n", "Entire field can be accessed with one operation of size %u\n",
AccessByteWidth)); AccessByteWidth));
return_VALUE (AccessByteWidth); return_VALUE (AccessByteWidth);
} }
@ -257,7 +257,7 @@ AcpiExGenerateAccess (
else else
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"AccessWidth %d end is NOT within region\n", AccessByteWidth)); "AccessWidth %u end is NOT within region\n", AccessByteWidth));
if (AccessByteWidth == 1) if (AccessByteWidth == 1)
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
@ -273,7 +273,7 @@ AcpiExGenerateAccess (
* previous access * previous access
*/ */
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD,
"Backing off to previous optimal access width of %d\n", "Backing off to previous optimal access width of %u\n",
MinimumAccessWidth)); MinimumAccessWidth));
return_VALUE (MinimumAccessWidth); return_VALUE (MinimumAccessWidth);
} }

View File

@ -285,7 +285,7 @@ AcpiExSystemMemorySpaceHandler (
((UINT64) Address - (UINT64) MemInfo->MappedPhysicalAddress); ((UINT64) Address - (UINT64) MemInfo->MappedPhysicalAddress);
ACPI_DEBUG_PRINT ((ACPI_DB_INFO, ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
"System-Memory (width %d) R/W %d Address=%8.8X%8.8X\n", "System-Memory (width %u) R/W %u Address=%8.8X%8.8X\n",
BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address))); BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address)));
/* /*
@ -395,7 +395,7 @@ AcpiExSystemIoSpaceHandler (
ACPI_DEBUG_PRINT ((ACPI_DB_INFO, ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
"System-IO (width %d) R/W %d Address=%8.8X%8.8X\n", "System-IO (width %u) R/W %u Address=%8.8X%8.8X\n",
BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address))); BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address)));
/* Decode the function parameter */ /* Decode the function parameter */
@ -475,7 +475,7 @@ AcpiExPciConfigSpaceHandler (
PciRegister = (UINT16) (UINT32) Address; PciRegister = (UINT16) (UINT32) Address;
ACPI_DEBUG_PRINT ((ACPI_DB_INFO, ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
"Pci-Config %d (%d) Seg(%04x) Bus(%04x) Dev(%04x) Func(%04x) Reg(%04x)\n", "Pci-Config %u (%u) Seg(%04x) Bus(%04x) Dev(%04x) Func(%04x) Reg(%04x)\n",
Function, BitWidth, PciId->Segment, PciId->Bus, PciId->Device, Function, BitWidth, PciId->Segment, PciId->Bus, PciId->Device,
PciId->Function, PciRegister)); PciId->Function, PciRegister));

View File

@ -396,7 +396,7 @@ AcpiEnterSleepState (
return_ACPI_STATUS (Status); return_ACPI_STATUS (Status);
} }
ACPI_DEBUG_PRINT ((ACPI_DB_INIT, ACPI_DEBUG_PRINT ((ACPI_DB_INIT,
"Entering sleep state [S%d]\n", SleepState)); "Entering sleep state [S%u]\n", SleepState));
/* Clear the SLP_EN and SLP_TYP fields */ /* Clear the SLP_EN and SLP_TYP fields */

View File

@ -531,7 +531,7 @@ AcpiNsLookup (
if (SearchParentFlag == ACPI_NS_NO_UPSEARCH) if (SearchParentFlag == ACPI_NS_NO_UPSEARCH)
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, ACPI_DEBUG_PRINT ((ACPI_DB_NAMES,
"Search scope is [%4.4s], path has %d carat(s)\n", "Search scope is [%4.4s], path has %u carat(s)\n",
AcpiUtGetNodeName (ThisNode), NumCarats)); AcpiUtGetNodeName (ThisNode), NumCarats));
} }
} }
@ -592,7 +592,7 @@ AcpiNsLookup (
Path++; Path++;
ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, ACPI_DEBUG_PRINT ((ACPI_DB_NAMES,
"Multi Pathname (%d Segments, Flags=%X)\n", "Multi Pathname (%u Segments, Flags=%X)\n",
NumSegments, Flags)); NumSegments, Flags));
break; break;

View File

@ -537,7 +537,7 @@ AcpiNsDumpOneObject (
return (AE_OK); return (AE_OK);
} }
AcpiOsPrintf ("(R%d)", ObjDesc->Common.ReferenceCount); AcpiOsPrintf ("(R%u)", ObjDesc->Common.ReferenceCount);
switch (Type) switch (Type)
{ {

View File

@ -223,7 +223,7 @@ AcpiNsOneCompleteParse (
/* Parse the AML */ /* Parse the AML */
ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "*PARSE* pass %d parse\n", PassNumber)); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "*PARSE* pass %u parse\n", PassNumber));
Status = AcpiPsParseAml (WalkState); Status = AcpiPsParseAml (WalkState);
Cleanup: Cleanup:

View File

@ -683,7 +683,7 @@ AcpiUtDumpAllocations (
if (Element->Size < sizeof (ACPI_COMMON_DESCRIPTOR)) if (Element->Size < sizeof (ACPI_COMMON_DESCRIPTOR))
{ {
AcpiOsPrintf ("%p Length 0x%04X %9.9s-%d " AcpiOsPrintf ("%p Length 0x%04X %9.9s-%u "
"[Not a Descriptor - too small]\n", "[Not a Descriptor - too small]\n",
Descriptor, Element->Size, Element->Module, Descriptor, Element->Size, Element->Module,
Element->Line); Element->Line);
@ -694,7 +694,7 @@ AcpiUtDumpAllocations (
if (ACPI_GET_DESCRIPTOR_TYPE (Descriptor) != ACPI_DESC_TYPE_CACHED) if (ACPI_GET_DESCRIPTOR_TYPE (Descriptor) != ACPI_DESC_TYPE_CACHED)
{ {
AcpiOsPrintf ("%p Length 0x%04X %9.9s-%d [%s] ", AcpiOsPrintf ("%p Length 0x%04X %9.9s-%u [%s] ",
Descriptor, Element->Size, Element->Module, Descriptor, Element->Size, Element->Module,
Element->Line, AcpiUtGetDescriptorName (Descriptor)); Element->Line, AcpiUtGetDescriptorName (Descriptor));
@ -772,7 +772,7 @@ AcpiUtDumpAllocations (
} }
else else
{ {
ACPI_ERROR ((AE_INFO, "%d(0x%X) Outstanding allocations", ACPI_ERROR ((AE_INFO, "%u(0x%X) Outstanding allocations",
NumOutstanding, NumOutstanding)); NumOutstanding, NumOutstanding));
} }