Changeset 88906 in vbox for trunk/src/VBox/Devices/Audio/DevSB16.cpp
- Timestamp:
- May 6, 2021 2:24:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r88905 r88906 2850 2850 2851 2851 /** 2852 * Attach command, internal version. 2853 * 2854 * This is called to let the device attach to a driver for a specified LUN 2855 * during runtime. This is not called during VM construction, the device 2856 * constructor has to attach to all the available drivers. 2852 * Worker for sb16Construct() and sb16Attach(). 2857 2853 * 2858 2854 * @returns VBox status code. 2859 2855 * @param pThis SB16 state. 2860 2856 * @param uLUN The logical unit which is being detached. 2861 * @param fFlags Flags, combination of the PDMDEVATT_FLAGS_* \#defines.2862 2857 * @param ppDrv Attached driver instance on success. Optional. 2863 2858 */ 2864 static int sb16AttachInternal(PSB16STATE pThis, unsigned uLUN, uint32_t fFlags, PSB16DRIVER *ppDrv) 2865 { 2866 RT_NOREF(fFlags); 2867 2859 static int sb16AttachInternal(PSB16STATE pThis, unsigned uLUN, PSB16DRIVER *ppDrv) 2860 { 2868 2861 /* 2869 2862 * Allocate a new driver structure and try attach the driver. … … 2903 2896 if (ppDrv) 2904 2897 *ppDrv = pDrv; 2905 LogFunc((" iLUN=%u, fFlags=0x%x: VINF_SUCCESS\n", uLUN, fFlags));2898 LogFunc(("LUN#%u: VINF_SUCCESS\n", uLUN)); 2906 2899 return VINF_SUCCESS; 2907 2900 } … … 2914 2907 RTMemFree(pDrv); 2915 2908 2916 LogFunc((" iLUN=%u, fFlags=0x%x: rc=%Rrc\n", uLUN, fFlags, rc));2909 LogFunc(("LUN#%u: rc=%Rrc\n", uLUN, rc)); 2917 2910 return rc; 2918 2911 } … … 2924 2917 { 2925 2918 PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE); 2926 2927 LogFunc(("iLUN=%u, fFlags= 0x%x\n", iLUN, fFlags));2919 RT_NOREF(fFlags); 2920 LogFunc(("iLUN=%u, fFlags=%#x\n", iLUN, fFlags)); 2928 2921 2929 2922 /** @todo r=andy Any locking required here? */ 2930 2923 2931 2924 PSB16DRIVER pDrv; 2932 int rc = sb16AttachInternal(pThis, iLUN, fFlags,&pDrv);2925 int rc = sb16AttachInternal(pThis, iLUN, &pDrv); 2933 2926 if (RT_SUCCESS(rc)) 2934 2927 { … … 3263 3256 AssertBreak(iLun < UINT8_MAX); 3264 3257 LogFunc(("Trying to attach driver for LUN#%u ...\n", iLun)); 3265 rc = sb16AttachInternal(pThis, iLun, 0 /* fFlags */,NULL /* ppDrv */);3258 rc = sb16AttachInternal(pThis, iLun, NULL /* ppDrv */); 3266 3259 if (rc == VERR_PDM_NO_ATTACHED_DRIVER) 3267 3260 {
Note:
See TracChangeset
for help on using the changeset viewer.