mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:33:20 +00:00
[CMLIB] Fix GCC13 print formatting '%lu' warning (#7408)
CORE-19724 sdk/lib/cmlib/cmcheck.c: Print the HCELL_INDEX indices in hexadecimal. ------------------ sdk/lib/cmlib/cmcheck.c:321:60: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'ULONG' {aka 'unsigned int'} [-Wformat=] and at lines 341, 357, 374, 554, 579, 733, 760, 801, 984, 1003, 1458, 1476, 1521, 1551, 1670 sdk/lib/cmlib/cmcheck.c:1251:65: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'HCELL_INDEX' {aka 'unsigned int'} [-Wformat=] and at lines 1282, 1303, 1551 sdk/lib/cmlib/cmcheck.c:1326:79: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'LONG' {aka 'int'} [-Wformat=] sdk/lib/cmlib/cmcheck.c:1684:76: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'CM_CHECK_REGISTRY_STATUS' {aka 'unsigned int'} [-Wformat=] and at line 1711 ------------------ sdk/lib/cmlib/cmheal.c:223:108: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'ULONG' {aka 'unsigned int'} [-Wformat=] and at lines 240, 319, 335 sdk/lib/cmlib/cmheal.c:480:79: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=] ------------------ sdk/lib/cmlib/hiveinit.c:976:62: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'ULONG' {aka 'unsigned int'} [-Wformat=] and at lines 988, 1492
This commit is contained in:
parent
a0f8b40d5a
commit
ee5338ff13
4 changed files with 41 additions and 37 deletions
|
@ -220,7 +220,7 @@ CmpRemoveSubkeyInRoot(
|
|||
HvReleaseCell(Hive, LeafCell);
|
||||
HvMarkCellDirty(Hive, LeafCell, FALSE);
|
||||
CmpRemoveFastIndexKeyCell(FastIndex, LeafCountIndex, TRUE);
|
||||
DPRINT1("The offending key cell has BEEN FOUND in fast index (fast index 0x%p, index %lu)\n",
|
||||
DPRINT1("The offending key cell has BEEN FOUND in fast index (fast index 0x%p, index %u)\n",
|
||||
FastIndex, LeafCountIndex);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ CmpRemoveSubkeyInRoot(
|
|||
HvReleaseCell(Hive, LeafCell);
|
||||
HvMarkCellDirty(Hive, LeafCell, FALSE);
|
||||
CmpRemoveIndexKeyCell(Leaf, LeafCountIndex);
|
||||
DPRINT1("The offending key cell has BEEN FOUND in leaf (leaf 0x%p, index %lu)\n",
|
||||
DPRINT1("The offending key cell has BEEN FOUND in leaf (leaf 0x%p, index %u)\n",
|
||||
Leaf, LeafCountIndex);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -316,7 +316,7 @@ CmpRemoveSubKeyInLeaf(
|
|||
* rather than that of the fast index.
|
||||
*/
|
||||
Leaf->Count--;
|
||||
DPRINT1("The offending key cell has BEEN FOUND in fast index (fast index 0x%p, leaf index %lu)\n",
|
||||
DPRINT1("The offending key cell has BEEN FOUND in fast index (fast index 0x%p, leaf index %u)\n",
|
||||
FastIndex, LeafIndex);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -332,7 +332,7 @@ CmpRemoveSubKeyInLeaf(
|
|||
{
|
||||
HvMarkCellDirty(Hive, KeyNode->SubKeyLists[Stable], FALSE);
|
||||
CmpRemoveIndexKeyCell(Leaf, LeafIndex);
|
||||
DPRINT1("The offending key cell has BEEN FOUND in leaf (leaf 0x%p, index %lu)\n",
|
||||
DPRINT1("The offending key cell has BEEN FOUND in leaf (leaf 0x%p, index %u)\n",
|
||||
Leaf, LeafIndex);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -477,7 +477,8 @@ CmpRepairParentKey(
|
|||
* if for whatever reason we reach here then something
|
||||
* is seriously wrong.
|
||||
*/
|
||||
DPRINT1("The key index signature is invalid (KeyIndex->Signature == %lu)", KeyIndex->Signature);
|
||||
DPRINT1("The key index signature is invalid (KeyIndex->Signature == %u)",
|
||||
KeyIndex->Signature);
|
||||
ASSERT(FALSE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue