XHCI: Increase fScratchpadCount size
* To fix clang's '-Wtautological-constant-out-of-range-compare' warnings in xhci.cpp. * by korli: adjust trace print macro. Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
ef9b129675
commit
9ff9025759
@ -425,7 +425,8 @@ XHCI::Start()
|
||||
uint32 params2 = ReadCapReg32(XHCI_HCSPARAMS2);
|
||||
fScratchpadCount = HCS_MAX_SC_BUFFERS(params2);
|
||||
if (fScratchpadCount > XHCI_MAX_SCRATCHPADS) {
|
||||
TRACE_ERROR("Invalid number of scratchpads: %u\n", fScratchpadCount);
|
||||
TRACE_ERROR("Invalid number of scratchpads: %" B_PRIu32 "\n",
|
||||
fScratchpadCount);
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ private:
|
||||
uint8 fPortSlots[XHCI_MAX_PORTS];
|
||||
|
||||
// Scratchpad
|
||||
uint8 fScratchpadCount;
|
||||
uint32 fScratchpadCount;
|
||||
area_id fScratchpadArea[XHCI_MAX_SCRATCHPADS];
|
||||
void * fScratchpad[XHCI_MAX_SCRATCHPADS];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user