VirtualBox

Changeset 40958 in vbox


Ignore:
Timestamp:
Apr 17, 2012 9:58:54 AM (13 years ago)
Author:
vboxsync
Message:

Fixed pszArgs == NULL in pdmtracerids.

File:
1 edited

Legend:

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

    r40954 r40958  
    417417             * Register the info handlers.
    418418             */
    419             DBGFR3InfoRegisterInternal(pVM, "pdmtracingids", 
    420                                        "Displays the tracing IDs assigned by PDM to devices, USB device, drivers and more.", 
     419            DBGFR3InfoRegisterInternal(pVM, "pdmtracingids",
     420                                       "Displays the tracing IDs assigned by PDM to devices, USB device, drivers and more.",
    421421                                       pdmR3InfoTracingIds);
    422422
     
    26752675/**
    26762676 * Info handler for 'pdmtracingids'.
    2677  * 
     2677 *
    26782678 * @param   pVM         The VM handle.
    26792679 * @param   pHlp        The output helpers.
    26802680 * @param   pszArgs     The optional user arguments.
    2681  * 
     2681 *
    26822682 * @remarks Can be called on most threads.
    26832683 */
     
    26872687     * Parse the argument (optional).
    26882688     */
    2689     if (   *pszArgs
     2689    if (   pszArgs
     2690        && *pszArgs
    26902691        && strcmp(pszArgs, "all")
    26912692        && strcmp(pszArgs, "devices")
     
    26962697        return;
    26972698    }
    2698     bool fAll     = !*pszArgs || !strcmp(pszArgs, "all");
     2699    bool fAll     = !pszArgs || !*pszArgs || !strcmp(pszArgs, "all");
    26992700    bool fDevices = fAll || !strcmp(pszArgs, "devices");
    27002701    bool fUsbDevs = fAll || !strcmp(pszArgs, "usb");
    27012702    bool fDrivers = fAll || !strcmp(pszArgs, "drivers");
    27022703
    2703     /* 
     2704    /*
    27042705     * Produce the requested output.
    27052706     */
     
    27312732                uint32_t iLevel = 0;
    27322733                for (PPDMDRVINS pDrvIns = pLun->pTop; pDrvIns; pDrvIns = pDrvIns->Internal.s.pDown, iLevel++)
    2733                     pHlp->pfnPrintf(pHlp, "%05u  %s (level %u, lun %u, dev %s)\n", 
    2734                                     pDrvIns->idTracing, pDrvIns->Internal.s.pDrv->pReg->szName, 
     2734                    pHlp->pfnPrintf(pHlp, "%05u  %s (level %u, lun %u, dev %s)\n",
     2735                                    pDrvIns->idTracing, pDrvIns->Internal.s.pDrv->pReg->szName,
    27352736                                    iLevel, pLun->iLun, pDevIns->Internal.s.pDevR3->pReg->szName);
    27362737            }
     
    27432744                uint32_t iLevel = 0;
    27442745                for (PPDMDRVINS pDrvIns = pLun->pTop; pDrvIns; pDrvIns = pDrvIns->Internal.s.pDown, iLevel++)
    2745                     pHlp->pfnPrintf(pHlp, "%05u  %s (level %u, lun %u, dev %s)\n", 
    2746                                     pDrvIns->idTracing, pDrvIns->Internal.s.pDrv->pReg->szName, 
     2746                    pHlp->pfnPrintf(pHlp, "%05u  %s (level %u, lun %u, dev %s)\n",
     2747                                    pDrvIns->idTracing, pDrvIns->Internal.s.pDrv->pReg->szName,
    27472748                                    iLevel, pLun->iLun, pUsbIns->Internal.s.pUsbDev->pReg->szName);
    27482749            }
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