Changeset 103685 in vbox
- Timestamp:
- Mar 5, 2024 3:46:54 PM (7 months ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
-
common/log/log.cpp (modified) (4 diffs)
-
r0drv/linux/memobj-r0drv-linux.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r103066 r103685 549 549 uint16_t const iGroup = RT_HI_U16(fFlagsAndGroup); 550 550 if ( iGroup != UINT16_MAX 551 && ( ( *(pLoggerInt->afGroups + (iGroup < pLoggerInt->cGroups ? iGroup : 0))& (fFlags | RTLOGGRPFLAGS_ENABLED))551 && ( (pLoggerInt->afGroups[iGroup < pLoggerInt->cGroups ? iGroup : 0] & (fFlags | RTLOGGRPFLAGS_ENABLED)) 552 552 != (fFlags | RTLOGGRPFLAGS_ENABLED))) 553 553 pLoggerInt = NULL; … … 1556 1556 iGroup = pLoggerInt->cGroups; 1557 1557 while (iGroup-- > 0) 1558 *(pLoggerInt->afGroups + iGroup)= 0;1558 pLoggerInt->afGroups[iGroup] = 0; 1559 1559 1560 1560 /* … … 1789 1789 { 1790 1790 if (fEnabled) 1791 *(pLoggerInt->afGroups + i)|= fFlags;1791 pLoggerInt->afGroups[i] |= fFlags; 1792 1792 else 1793 *(pLoggerInt->afGroups + i)&= ~fFlags;1793 pLoggerInt->afGroups[i] &= ~fFlags; 1794 1794 } 1795 1795 } … … 4159 4159 return VINF_LOG_DISABLED; 4160 4160 if ( iGroup != ~0U 4161 && ( *(pLoggerInt->afGroups + iGroup)& (fFlags | RTLOGGRPFLAGS_ENABLED)) != (fFlags | RTLOGGRPFLAGS_ENABLED))4161 && (pLoggerInt->afGroups[iGroup] & (fFlags | RTLOGGRPFLAGS_ENABLED)) != (fFlags | RTLOGGRPFLAGS_ENABLED)) 4162 4162 return VINF_LOG_DISABLED; 4163 4163 -
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r103684 r103685 439 439 fContiguous = true; 440 440 for (iPage = 0; iPage < cPages; iPage++) 441 *(pMemLnx->apPages + iPage)= &paPages[iPage];441 pMemLnx->apPages[iPage] = &paPages[iPage]; 442 442 } 443 443 else if (fContiguous) … … 455 455 for (iPage = 0; iPage < cPages; iPage++) 456 456 { 457 *(pMemLnx->apPages + iPage)= alloc_page(fFlagsLnx | __GFP_NOWARN);458 if (RT_UNLIKELY(! *(pMemLnx->apPages + iPage)))457 pMemLnx->apPages[iPage] = alloc_page(fFlagsLnx | __GFP_NOWARN); 458 if (RT_UNLIKELY(!pMemLnx->apPages[iPage])) 459 459 { 460 460 while (iPage-- > 0) 461 __free_page( *(pMemLnx->apPages + iPage));461 __free_page(pMemLnx->apPages[iPage]); 462 462 rtR0MemObjDelete(&pMemLnx->Core); 463 463 return rcNoMem; … … 636 636 size_t iPage = pMemLnx->cPages; 637 637 while (iPage-- > 0) 638 if (PageHighMem( *(pMemLnx->apPages + iPage)))638 if (PageHighMem(pMemLnx->apPages[iPage])) 639 639 { 640 640 fMustMap = true;
Note:
See TracChangeset
for help on using the changeset viewer.

