- Timestamp:
- Dec 17, 2013 8:10:20 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r48311 r49946 77 77 DECLINLINE(uint32_t) VBoxGuestCommonGetHandledEventsLocked(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession) 78 78 { 79 if (!pDevExt->u32AcquireModeGuestCaps)79 if (!pDevExt->u32AcquireModeGuestCaps) 80 80 return VMMDEV_EVENT_VALID_EVENT_MASK; 81 81 … … 463 463 if (!pDevExt->MemBalloon.paMemObj) 464 464 { 465 LogRel((" VBoxGuestSetBalloonSizeKernel: no memory for paMemObj!\n"));465 LogRel(("vboxGuestSetBalloonSizeKernel: no memory for paMemObj!\n")); 466 466 return VERR_NO_MEMORY; 467 467 } … … 2074 2074 { 2075 2075 LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: cbData=%#zx (%zu) required size is %#zx (%zu)\n", 2076 cbData, cbActual));2076 cbData, cbData, cbActual, cbActual)); 2077 2077 return VERR_INVALID_PARAMETER; 2078 2078 } … … 2523 2523 { 2524 2524 if (fCaps & (~(VMMDEV_GUEST_SUPPORTS_SEAMLESS | VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING | VMMDEV_GUEST_SUPPORTS_GRAPHICS))) 2525 {2526 LogRel(("VBoxGuestCommonGuestCapsValidateValues: invalid guest caps 0x%x\n", fCaps));2527 2525 return false; 2528 } 2526 2529 2527 return true; 2530 2528 } … … 2571 2569 uint32_t fSetCaps = 0; 2572 2570 2573 LogRel(("VBoxGuest: VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x)\n", pSession, fOrMask, fNotMask, enmFlags));2574 2575 2571 if (!VBoxGuestCommonGuestCapsValidateValues(fOrMask)) 2576 2572 { 2577 LogRel(("invalid fOrMask 0x%x\n", fOrMask)); 2573 LogRel(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- invalid fOrMask\n", 2574 pSession, fOrMask, fNotMask, enmFlags)); 2578 2575 return VERR_INVALID_PARAMETER; 2579 2576 } 2580 2577 2581 if (enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE 2582 && enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_NONE) 2583 { 2584 LogRel(("invalid enmFlags %d\n", enmFlags)); 2578 if ( enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE 2579 && enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_NONE) 2580 { 2581 LogRel(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- invalid enmFlags %d\n", 2582 pSession, fOrMask, fNotMask, enmFlags)); 2585 2583 return VERR_INVALID_PARAMETER; 2586 2584 } 2585 2587 2586 if (!VBoxGuestCommonGuestCapsModeSet(pDevExt, fOrMask, true, &fSetCaps)) 2588 2587 { 2589 LogRel(("calling caps acquire for set caps %d\n", fOrMask)); 2588 LogRel(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- calling caps acquire for set caps\n", 2589 pSession, fOrMask, fNotMask, enmFlags)); 2590 2590 return VERR_INVALID_STATE; 2591 2591 } … … 2593 2593 if (enmFlags & VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE) 2594 2594 { 2595 Log(("Configured Acquire caps: 0x%x\n", fOrMask)); 2595 Log(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- configured acquire caps: 0x%x\n", 2596 pSession, fOrMask, fNotMask, enmFlags)); 2596 2597 return VINF_SUCCESS; 2597 2598 } … … 2645 2646 2646 2647 int rc = VBoxGuestSetGuestCapabilities(fSessionOrCaps, fSessionNotCaps); 2647 if (!RT_ SUCCESS(rc))2648 { 2649 LogRel(("VBoxGuest : VBoxGuestCommonGuestCapsAcquire: VBoxGuestSetGuestCapabilities failed, rc %d\n", rc));2648 if (!RT_FAILURE(rc)) 2649 { 2650 LogRel(("VBoxGuestCommonGuestCapsAcquire: VBoxGuestSetGuestCapabilities failed, rc=%Rrc\n", rc)); 2650 2651 2651 2652 /* Failure branch … … 2677 2678 { 2678 2679 int rc = VBoxGuestCommonGuestCapsAcquire(pDevExt, pSession, pAcquire->u32OrMask, pAcquire->u32NotMask, pAcquire->enmFlags); 2679 if ( !RT_SUCCESS(rc))2680 LogRel(("VBoxGuestCommonGuestCapsAcquire: failed rc %d\n", rc));2680 if (RT_FAILURE(rc)) 2681 LogRel(("VBoxGuestCommonGuestCapsAcquire: failed rc=%Rrc\n", rc)); 2681 2682 pAcquire->rc = rc; 2682 2683 return VINF_SUCCESS; … … 2915 2916 default: 2916 2917 { 2917 LogRel(("VBoxGuestCommonIOCtl: Unknown request iFunction=%#x Stripped size=%#x\n", iFunction,2918 2918 LogRel(("VBoxGuestCommonIOCtl: Unknown request iFunction=%#x stripped size=%#x\n", 2919 iFunction, VBOXGUEST_IOCTL_STRIP_SIZE(iFunction))); 2919 2920 rc = VERR_NOT_SUPPORTED; 2920 2921 break;
Note:
See TracChangeset
for help on using the changeset viewer.