VirtualBox

Ignore:
Timestamp:
Sep 16, 2013 5:10:24 PM (11 years ago)
Author:
vboxsync
Message:

In addition to r88992: reduce release logging, fix coding style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp

    r48496 r48498  
    12141214        rc = IOHIDDeviceSetValue(hidDevice, element, valueRef);
    12151215        if (rc != kIOReturnSuccess)
    1216         {
    12171216            LogRelFlow(("Warning! Something went wrong in attempt to turn %s HID device led (error %d)!\n", ((fEnabled) ? "on" : "off"), rc));
    1218         }
    12191217        else
    1220         {
    1221             LogRelFlow(("Led (%d) is turned %s\n", (int)IOHIDElementGetUsage(element), ((fEnabled) ? "on" : "off")));
    1222         }
     1218            Log2(("Led (%d) is turned %s\n", (int)IOHIDElementGetUsage(element), ((fEnabled) ? "on" : "off")));
    12231219
    12241220        CFRelease(valueRef);
     
    12461242            {
    12471243                case kHIDUsage_LED_NumLock:
    1248                 {
    12491244                    darwinLedElementSetValue(hidDevice, element, fNumLockOn);
    12501245                    break;
    1251                 }
    12521246
    12531247                case kHIDUsage_LED_CapsLock:
    1254                 {
    12551248                    darwinLedElementSetValue(hidDevice, element, fCapsLockOn);
    12561249                    break;
    1257                 }
    12581250
    12591251                case kHIDUsage_LED_ScrollLock:
    1260                 {
    12611252                    darwinLedElementSetValue(hidDevice, element, fScrollLockOn);
    12621253                    break;
    1263                 }
    12641254            }
    12651255
     
    13301320                rc = IOHIDManagerClose(hidManagerRef, 0);
    13311321                if (rc != kIOReturnSuccess)
    1332                 {
    13331322                    LogRelFlow(("Warning! Something went wrong in attempt to close HID device manager!\n"));
    1334                 }
    13351323            }
    13361324
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