VirtualBox

Changeset 70039 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Dec 8, 2017 5:23:10 PM (7 years ago)
Author:
vboxsync
Message:

Fixed typo: Occurance -> Occurrence.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp

    r69111 r70039  
    986986 * @param   pszDriver       The name of the driver which to detach.  If NULL
    987987 *                          then the entire driver chain is detatched.
    988  * @param   iOccurance      The occurrence of that driver in the chain.  This is
     988 * @param   iOccurrence     The occurrence of that driver in the chain.  This is
    989989 *                          usually 0.
    990990 * @param   fFlags          Flags, combination of the PDMDEVATT_FLAGS_* \#defines.
     
    992992 */
    993993VMMR3DECL(int) PDMR3DriverDetach(PUVM pUVM, const char *pszDevice, unsigned iDevIns, unsigned iLun,
    994                                  const char *pszDriver, unsigned iOccurance, uint32_t fFlags)
    995 {
    996     LogFlow(("PDMR3DriverDetach: pszDevice=%p:{%s} iDevIns=%u iLun=%u pszDriver=%p:{%s} iOccurance=%u fFlags=%#x\n",
    997              pszDevice, pszDevice, iDevIns, iLun, pszDriver, pszDriver, iOccurance, fFlags));
     994                                 const char *pszDriver, unsigned iOccurrence, uint32_t fFlags)
     995{
     996    LogFlow(("PDMR3DriverDetach: pszDevice=%p:{%s} iDevIns=%u iLun=%u pszDriver=%p:{%s} iOccurrence=%u fFlags=%#x\n",
     997             pszDevice, pszDevice, iDevIns, iLun, pszDriver, pszDriver, iOccurrence, fFlags));
    998998    UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE);
    999999    PVM pVM = pUVM->pVM;
     
    10021002    AssertPtr(pszDevice);
    10031003    AssertPtrNull(pszDriver);
    1004     Assert(iOccurance == 0 || pszDriver);
     1004    Assert(iOccurrence == 0 || pszDriver);
    10051005    Assert(!(fFlags & ~(PDM_TACH_FLAGS_NOT_HOT_PLUG)));
    10061006
     
    10241024                    if (!strcmp(pDrvIns->pReg->szName, pszDriver))
    10251025                    {
    1026                         if (iOccurance == 0)
     1026                        if (iOccurrence == 0)
    10271027                            break;
    1028                         iOccurance--;
     1028                        iOccurrence--;
    10291029                    }
    10301030                    pDrvIns = pDrvIns->Internal.s.pDown;
     
    10611061 *                          If NULL then the entire driver chain is to be
    10621062 *                          reattached.
    1063  * @param   iOccurance      The occurrence of that driver in the chain.  This is
     1063 * @param   iOccurrence     The occurrence of that driver in the chain.  This is
    10641064 *                          usually 0.
    10651065 * @param   fFlags          Flags, combination of the PDMDEVATT_FLAGS_* \#defines.
     
    10761076 */
    10771077VMMR3DECL(int)  PDMR3DriverReattach(PUVM pUVM, const char *pszDevice, unsigned iDevIns, unsigned iLun,
    1078                                     const char *pszDriver, unsigned iOccurance, uint32_t fFlags,
     1078                                    const char *pszDriver, unsigned iOccurrence, uint32_t fFlags,
    10791079                                    PCFGMNODE pCfg, PPPDMIBASE ppBase)
    10801080{
    1081     NOREF(pUVM); NOREF(pszDevice); NOREF(iDevIns); NOREF(iLun); NOREF(pszDriver); NOREF(iOccurance);
     1081    NOREF(pUVM); NOREF(pszDevice); NOREF(iDevIns); NOREF(iLun); NOREF(pszDriver); NOREF(iOccurrence);
    10821082    NOREF(fFlags); NOREF(pCfg); NOREF(ppBase);
    10831083    return VERR_NOT_IMPLEMENTED;
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r69111 r70039  
    13821382 * @param   pszDriver       The name of the driver which to detach.  If NULL
    13831383 *                          then the entire driver chain is detatched.
    1384  * @param   iOccurance      The occurrence of that driver in the chain.  This is
     1384 * @param   iOccurrence     The occurrence of that driver in the chain.  This is
    13851385 *                          usually 0.
    13861386 * @param   fFlags          Flags, combination of the PDM_TACH_FLAGS_* \#defines.
     
    13881388 */
    13891389VMMR3DECL(int)  PDMR3UsbDriverDetach(PUVM pUVM, const char *pszDevice, unsigned iDevIns, unsigned iLun,
    1390                                      const char *pszDriver, unsigned iOccurance, uint32_t fFlags)
    1391 {
    1392     LogFlow(("PDMR3UsbDriverDetach: pszDevice=%p:{%s} iDevIns=%u iLun=%u pszDriver=%p:{%s} iOccurance=%u fFlags=%#x\n",
    1393              pszDevice, pszDevice, iDevIns, iLun, pszDriver, pszDriver, iOccurance, fFlags));
     1390                                     const char *pszDriver, unsigned iOccurrence, uint32_t fFlags)
     1391{
     1392    LogFlow(("PDMR3UsbDriverDetach: pszDevice=%p:{%s} iDevIns=%u iLun=%u pszDriver=%p:{%s} iOccurrence=%u fFlags=%#x\n",
     1393             pszDevice, pszDevice, iDevIns, iLun, pszDriver, pszDriver, iOccurrence, fFlags));
    13941394    UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE);
    13951395    PVM pVM = pUVM->pVM;
     
    13981398    AssertPtr(pszDevice);
    13991399    AssertPtrNull(pszDriver);
    1400     Assert(iOccurance == 0 || pszDriver);
     1400    Assert(iOccurrence == 0 || pszDriver);
    14011401    Assert(!(fFlags & ~(PDM_TACH_FLAGS_NOT_HOT_PLUG)));
    14021402
     
    14201420                    if (!strcmp(pDrvIns->pReg->szName, pszDriver))
    14211421                    {
    1422                         if (iOccurance == 0)
     1422                        if (iOccurrence == 0)
    14231423                            break;
    1424                         iOccurance--;
     1424                        iOccurrence--;
    14251425                    }
    14261426                    pDrvIns = pDrvIns->Internal.s.pDown;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette