ntdll: Trace RTL_BITMAP api arguments as unsigned when appropriate.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-12-17 16:06:50 +03:00 committed by Alexandre Julliard
parent a8ef261493
commit 86df15cbf1
1 changed files with 15 additions and 15 deletions

View File

@ -74,7 +74,7 @@ static const signed char NTDLL_mostSignificant[16] = {
*/ */
VOID WINAPI RtlInitializeBitMap(PRTL_BITMAP lpBits, PULONG lpBuff, ULONG ulSize) VOID WINAPI RtlInitializeBitMap(PRTL_BITMAP lpBits, PULONG lpBuff, ULONG ulSize)
{ {
TRACE("(%p,%p,%d)\n", lpBits,lpBuff,ulSize); TRACE("(%p,%p,%u)\n", lpBits,lpBuff,ulSize);
lpBits->SizeOfBitMap = ulSize; lpBits->SizeOfBitMap = ulSize;
lpBits->Buffer = lpBuff; lpBits->Buffer = lpBuff;
} }
@ -130,7 +130,7 @@ VOID WINAPI RtlSetBits(PRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount)
{ {
LPBYTE lpOut; LPBYTE lpOut;
TRACE("(%p,%d,%d)\n", lpBits, ulStart, ulCount); TRACE("(%p,%u,%u)\n", lpBits, ulStart, ulCount);
if (!lpBits || !ulCount || if (!lpBits || !ulCount ||
ulStart >= lpBits->SizeOfBitMap || ulStart >= lpBits->SizeOfBitMap ||
@ -191,7 +191,7 @@ VOID WINAPI RtlClearBits(PRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount)
{ {
LPBYTE lpOut; LPBYTE lpOut;
TRACE("(%p,%d,%d)\n", lpBits, ulStart, ulCount); TRACE("(%p,%u,%u)\n", lpBits, ulStart, ulCount);
if (!lpBits || !ulCount || if (!lpBits || !ulCount ||
ulStart >= lpBits->SizeOfBitMap || ulStart >= lpBits->SizeOfBitMap ||
@ -254,7 +254,7 @@ BOOLEAN WINAPI RtlAreBitsSet(PCRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount)
LPBYTE lpOut; LPBYTE lpOut;
ULONG ulRemainder; ULONG ulRemainder;
TRACE("(%p,%d,%d)\n", lpBits, ulStart, ulCount); TRACE("(%p,%u,%u)\n", lpBits, ulStart, ulCount);
if (!lpBits || !ulCount || if (!lpBits || !ulCount ||
ulStart >= lpBits->SizeOfBitMap || ulStart >= lpBits->SizeOfBitMap ||
@ -327,7 +327,7 @@ BOOLEAN WINAPI RtlAreBitsClear(PCRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount
LPBYTE lpOut; LPBYTE lpOut;
ULONG ulRemainder; ULONG ulRemainder;
TRACE("(%p,%d,%d)\n", lpBits, ulStart, ulCount); TRACE("(%p,%u,%u)\n", lpBits, ulStart, ulCount);
if (!lpBits || !ulCount || if (!lpBits || !ulCount ||
ulStart >= lpBits->SizeOfBitMap || ulStart >= lpBits->SizeOfBitMap ||
@ -395,7 +395,7 @@ ULONG WINAPI RtlFindSetBits(PCRTL_BITMAP lpBits, ULONG ulCount, ULONG ulHint)
{ {
ULONG ulPos, ulEnd; ULONG ulPos, ulEnd;
TRACE("(%p,%d,%d)\n", lpBits, ulCount, ulHint); TRACE("(%p,%u,%u)\n", lpBits, ulCount, ulHint);
if (!lpBits || !ulCount || ulCount > lpBits->SizeOfBitMap) if (!lpBits || !ulCount || ulCount > lpBits->SizeOfBitMap)
return ~0U; return ~0U;
@ -442,7 +442,7 @@ ULONG WINAPI RtlFindClearBits(PCRTL_BITMAP lpBits, ULONG ulCount, ULONG ulHint)
{ {
ULONG ulPos, ulEnd; ULONG ulPos, ulEnd;
TRACE("(%p,%d,%d)\n", lpBits, ulCount, ulHint); TRACE("(%p,%u,%u)\n", lpBits, ulCount, ulHint);
if (!lpBits || !ulCount || ulCount > lpBits->SizeOfBitMap) if (!lpBits || !ulCount || ulCount > lpBits->SizeOfBitMap)
return ~0U; return ~0U;
@ -489,7 +489,7 @@ ULONG WINAPI RtlFindSetBitsAndClear(PRTL_BITMAP lpBits, ULONG ulCount, ULONG ulH
{ {
ULONG ulPos; ULONG ulPos;
TRACE("(%p,%d,%d)\n", lpBits, ulCount, ulHint); TRACE("(%p,%u,%u)\n", lpBits, ulCount, ulHint);
ulPos = RtlFindSetBits(lpBits, ulCount, ulHint); ulPos = RtlFindSetBits(lpBits, ulCount, ulHint);
if (ulPos != ~0U) if (ulPos != ~0U)
@ -514,7 +514,7 @@ ULONG WINAPI RtlFindClearBitsAndSet(PRTL_BITMAP lpBits, ULONG ulCount, ULONG ulH
{ {
ULONG ulPos; ULONG ulPos;
TRACE("(%p,%d,%d)\n", lpBits, ulCount, ulHint); TRACE("(%p,%u,%u)\n", lpBits, ulCount, ulHint);
ulPos = RtlFindClearBits(lpBits, ulCount, ulHint); ulPos = RtlFindClearBits(lpBits, ulCount, ulHint);
if (ulPos != ~0U) if (ulPos != ~0U)
@ -870,7 +870,7 @@ ULONG WINAPI RtlFindNextForwardRunSet(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG
{ {
ULONG ulSize = 0; ULONG ulSize = 0;
TRACE("(%p,%d,%p)\n", lpBits, ulStart, lpPos); TRACE("(%p,%u,%p)\n", lpBits, ulStart, lpPos);
if (lpBits && ulStart < lpBits->SizeOfBitMap && lpPos) if (lpBits && ulStart < lpBits->SizeOfBitMap && lpPos)
*lpPos = NTDLL_FindSetRun(lpBits, ulStart, &ulSize); *lpPos = NTDLL_FindSetRun(lpBits, ulStart, &ulSize);
@ -897,7 +897,7 @@ ULONG WINAPI RtlFindNextForwardRunClear(PCRTL_BITMAP lpBits, ULONG ulStart, PULO
{ {
ULONG ulSize = 0; ULONG ulSize = 0;
TRACE("(%p,%d,%p)\n", lpBits, ulStart, lpPos); TRACE("(%p,%u,%p)\n", lpBits, ulStart, lpPos);
if (lpBits && ulStart < lpBits->SizeOfBitMap && lpPos) if (lpBits && ulStart < lpBits->SizeOfBitMap && lpPos)
*lpPos = NTDLL_FindClearRun(lpBits, ulStart, &ulSize); *lpPos = NTDLL_FindClearRun(lpBits, ulStart, &ulSize);
@ -922,7 +922,7 @@ ULONG WINAPI RtlFindNextForwardRunClear(PCRTL_BITMAP lpBits, ULONG ulStart, PULO
*/ */
ULONG WINAPI RtlFindLastBackwardRunSet(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpPos) ULONG WINAPI RtlFindLastBackwardRunSet(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpPos)
{ {
FIXME("(%p,%d,%p)-stub!\n", lpBits, ulStart, lpPos); FIXME("(%p,%u,%p)-stub!\n", lpBits, ulStart, lpPos);
return 0; return 0;
} }
@ -943,7 +943,7 @@ ULONG WINAPI RtlFindLastBackwardRunSet(PCRTL_BITMAP lpBits, ULONG ulStart, PULON
*/ */
ULONG WINAPI RtlFindLastBackwardRunClear(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpPos) ULONG WINAPI RtlFindLastBackwardRunClear(PCRTL_BITMAP lpBits, ULONG ulStart, PULONG lpPos)
{ {
FIXME("(%p,%d,%p)-stub!\n", lpBits, ulStart, lpPos); FIXME("(%p,%u,%p)-stub!\n", lpBits, ulStart, lpPos);
return 0; return 0;
} }
@ -1021,7 +1021,7 @@ static ULONG NTDLL_FindRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries,
ULONG WINAPI RtlFindSetRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries, ULONG WINAPI RtlFindSetRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries,
ULONG ulCount, BOOLEAN bLongest) ULONG ulCount, BOOLEAN bLongest)
{ {
TRACE("(%p,%p,%d,%d)\n", lpBits, lpSeries, ulCount, bLongest); TRACE("(%p,%p,%u,%d)\n", lpBits, lpSeries, ulCount, bLongest);
return NTDLL_FindRuns(lpBits, lpSeries, ulCount, bLongest, NTDLL_FindSetRun); return NTDLL_FindRuns(lpBits, lpSeries, ulCount, bLongest, NTDLL_FindSetRun);
} }
@ -1043,7 +1043,7 @@ ULONG WINAPI RtlFindSetRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries,
ULONG WINAPI RtlFindClearRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries, ULONG WINAPI RtlFindClearRuns(PCRTL_BITMAP lpBits, PRTL_BITMAP_RUN lpSeries,
ULONG ulCount, BOOLEAN bLongest) ULONG ulCount, BOOLEAN bLongest)
{ {
TRACE("(%p,%p,%d,%d)\n", lpBits, lpSeries, ulCount, bLongest); TRACE("(%p,%p,%u,%d)\n", lpBits, lpSeries, ulCount, bLongest);
return NTDLL_FindRuns(lpBits, lpSeries, ulCount, bLongest, NTDLL_FindClearRun); return NTDLL_FindRuns(lpBits, lpSeries, ulCount, bLongest, NTDLL_FindClearRun);
} }