VirtualBox

Changeset 1895 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 3, 2007 4:31:26 PM (18 years ago)
Author:
vboxsync
Message:

fixed more checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r1890 r1895  
    818818            if (pIn->cPages <= 0 || !pIn->pvR3)
    819819            {
    820                 dprintf(("SUP_IOCTL_PINPAGES: Illegal request %p %d\n", (void *)pIn->pvR3, pIn->cb));
     820                dprintf(("SUP_IOCTL_PINPAGES: Illegal request %p %d\n", (void *)pIn->pvR3, pIn->cPages));
    821821                return SUPDRV_ERR_INVALID_PARAM;
    822822            }
     
    17531753    int             rc;
    17541754    SUPDRVMEMREF    Mem = {0};
    1755     dprintf(("SUPR0LockMem: pSession=%p pvR3=%p cb=%d paPages=%p\n",
    1756              pSession, (void *)pvR3, cb, paPages));
     1755    dprintf(("SUPR0LockMem: pSession=%p pvR3=%p cPages=%d paPages=%p\n",
     1756             pSession, (void *)pvR3, cPages, paPages));
    17571757
    17581758    /*
     
    18571857    int             rc;
    18581858    SUPDRVMEMREF    Mem = {0};
    1859     dprintf(("SUPR0ContAlloc: pSession=%p cb=%d ppvR0=%p ppvR3=%p pHCPhys=%p\n", pSession, cb, ppvR0, ppvR3, pHCPhys));
     1859    dprintf(("SUPR0ContAlloc: pSession=%p cPages=%d ppvR0=%p ppvR3=%p pHCPhys=%p\n", pSession, cPages, ppvR0, ppvR3, pHCPhys));
    18601860
    18611861    /*
     
    18711871    if (cPages == 0 || cPages >= 256)
    18721872    {
    1873         dprintf(("Illegal request cb=%d, must be greater than 64 and smaller than PAGE_SIZE*256\n", cb));
     1873        dprintf(("Illegal request cPages=%d, must be greater than 0 and smaller than 256\n", cPages));
    18741874        return SUPDRV_ERR_INVALID_PARAM;
    18751875    }
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