VirtualBox

Changeset 44175 in vbox


Ignore:
Timestamp:
Dec 19, 2012 6:16:25 PM (12 years ago)
Author:
vboxsync
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp

    r44173 r44175  
    9595     * Try open the device.
    9696     */
    97     int hDevice = open(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, O_RDWR, 0);
     97    const char *pszDeviceNm = fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR
     98    int hDevice = open(pszDeviceNm, O_RDWR, 0);
    9899    if (hDevice < 0)
    99100    {
     
    101102         * Try load the device.
    102103         */
    103         hDevice = open(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, O_RDWR, 0);
     104        hDevice = open(pszDeviceNm, O_RDWR, 0);
    104105        if (hDevice < 0)
    105106        {
     
    114115                default:        rc = VERR_VM_DRIVER_OPEN_ERROR; break;
    115116            }
    116             LogRel(("Failed to open \"%s\", errno=%d, rc=%Rrc\n", DEVICE_NAME, errno, rc));
     117            LogRel(("Failed to open \"%s\", errno=%d, rc=%Rrc\n", pszDeviceNm, errno, rc));
    117118            return rc;
    118119        }
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