Changeset 40958 in vbox
- Timestamp:
- Apr 17, 2012 9:58:54 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDM.cpp
r40954 r40958 417 417 * Register the info handlers. 418 418 */ 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.", 421 421 pdmR3InfoTracingIds); 422 422 … … 2675 2675 /** 2676 2676 * Info handler for 'pdmtracingids'. 2677 * 2677 * 2678 2678 * @param pVM The VM handle. 2679 2679 * @param pHlp The output helpers. 2680 2680 * @param pszArgs The optional user arguments. 2681 * 2681 * 2682 2682 * @remarks Can be called on most threads. 2683 2683 */ … … 2687 2687 * Parse the argument (optional). 2688 2688 */ 2689 if ( *pszArgs 2689 if ( pszArgs 2690 && *pszArgs 2690 2691 && strcmp(pszArgs, "all") 2691 2692 && strcmp(pszArgs, "devices") … … 2696 2697 return; 2697 2698 } 2698 bool fAll = ! *pszArgs || !strcmp(pszArgs, "all");2699 bool fAll = !pszArgs || !*pszArgs || !strcmp(pszArgs, "all"); 2699 2700 bool fDevices = fAll || !strcmp(pszArgs, "devices"); 2700 2701 bool fUsbDevs = fAll || !strcmp(pszArgs, "usb"); 2701 2702 bool fDrivers = fAll || !strcmp(pszArgs, "drivers"); 2702 2703 2703 /* 2704 /* 2704 2705 * Produce the requested output. 2705 2706 */ … … 2731 2732 uint32_t iLevel = 0; 2732 2733 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, 2735 2736 iLevel, pLun->iLun, pDevIns->Internal.s.pDevR3->pReg->szName); 2736 2737 } … … 2743 2744 uint32_t iLevel = 0; 2744 2745 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, 2747 2748 iLevel, pLun->iLun, pUsbIns->Internal.s.pUsbDev->pReg->szName); 2748 2749 }
Note:
See TracChangeset
for help on using the changeset viewer.