Changeset 64156 in vbox for trunk/src/VBox/Additions/common/VBoxVideo
- Timestamp:
- Oct 5, 2016 1:43:52 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111134
- Location:
- trunk/src/VBox/Additions/common/VBoxVideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
r63273 r64156 24 24 25 25 #include <iprt/asm.h> 26 #include <iprt/log.h>26 // #include <iprt/log.h> 27 27 #include <iprt/string.h> 28 28 … … 411 411 *pcbHostArea = cbHostArea; 412 412 *poffVRAMHostArea = offVRAMHostArea; 413 LogFunc(("offVRAMHostArea = 0x%08X, cbHostArea = 0x%08X\n",414 offVRAMHostArea, cbHostArea));413 // LogFunc(("offVRAMHostArea = 0x%08X, cbHostArea = 0x%08X\n", 414 // offVRAMHostArea, cbHostArea)); 415 415 } 416 416 … … 462 462 uint32_t cbHostArea) 463 463 { 464 Log(("VBoxVideo::vboxSetupAdapterInfo\n"));464 // Log(("VBoxVideo::vboxSetupAdapterInfo\n")); 465 465 466 466 /* setup the flags first to ensure they are initialized by the time the … … 480 480 AssertRC(rc); 481 481 } 482 Log(("VBoxVideo::vboxSetupAdapterInfo finished rc = %d\n", rc));482 // Log(("VBoxVideo::vboxSetupAdapterInfo finished rc = %d\n", rc)); 483 483 return rc; 484 484 } … … 519 519 int rc = VINF_SUCCESS; 520 520 VBVACONF32 *p; 521 LogFunc(("u32Index = %d\n", u32Index));521 // LogFunc(("u32Index = %d\n", u32Index)); 522 522 523 523 rc = testQueryConf(pCtx); … … 537 537 { 538 538 *pulValue = p->u32Value; 539 LogFunc(("u32Value = %d\n", p->u32Value));539 // LogFunc(("u32Value = %d\n", p->u32Value)); 540 540 } 541 541 /* Free the IO buffer. */ … … 544 544 else 545 545 rc = VERR_NO_MEMORY; 546 LogFunc(("rc = %d\n", rc));546 // LogFunc(("rc = %d\n", rc)); 547 547 return rc; 548 548 } … … 589 589 fFlags |= VBOX_MOUSE_POINTER_VISIBLE; 590 590 } 591 LogFlowFunc(("cbData %d, %dx%d\n", cbData, cWidth, cHeight));591 // LogFlowFunc(("cbData %d, %dx%d\n", cbData, cWidth, cHeight)); 592 592 if (cbData > cbLength) 593 593 { 594 LogFunc(("calculated pointer data size is too big (%d bytes, limit %d)\n",595 cbData, cbLength));594 // LogFunc(("calculated pointer data size is too big (%d bytes, limit %d)\n", 595 // cbData, cbLength)); 596 596 return VERR_INVALID_PARAMETER; 597 597 } … … 624 624 else 625 625 rc = VERR_NO_MEMORY; 626 LogFlowFunc(("rc %d\n", rc));626 // LogFlowFunc(("rc %d\n", rc)); 627 627 return rc; 628 628 } … … 647 647 int rc = VINF_SUCCESS; 648 648 VBVACURSORPOSITION *p; 649 Log(("%s: x=%u, y=%u\n", __PRETTY_FUNCTION__, (unsigned)x, (unsigned)y));649 // Log(("%s: x=%u, y=%u\n", __PRETTY_FUNCTION__, (unsigned)x, (unsigned)y)); 650 650 651 651 /* Allocate the IO buffer. */ … … 664 664 if (pyHost) 665 665 *pyHost = p->y; 666 Log(("%s: return: x=%u, y=%u\n", __PRETTY_FUNCTION__, (unsigned)p->x, (unsigned)p->y));666 // Log(("%s: return: x=%u, y=%u\n", __PRETTY_FUNCTION__, (unsigned)p->x, (unsigned)p->y)); 667 667 } 668 668 /* Free the IO buffer. */ … … 671 671 else 672 672 rc = VERR_NO_MEMORY; 673 LogFunc(("rc = %d\n", rc));673 // LogFunc(("rc = %d\n", rc)); 674 674 return rc; 675 675 } -
trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
r63273 r64156 24 24 25 25 #include <iprt/asm.h> 26 #include <iprt/log.h>26 // #include <iprt/log.h> 27 27 28 28 #ifndef VBOX_GUESTR3XF86MOD … … 42 42 uint32_t cDisplays = 0; 43 43 VBoxQueryConfHGSMI(pCtx, VBOX_VBVA_CONF32_MONITOR_COUNT, &cDisplays); 44 LogFunc(("cDisplays = %d\n", cDisplays));44 // LogFunc(("cDisplays = %d\n", cDisplays)); 45 45 if (cDisplays == 0 || cDisplays > VBOX_VIDEO_MAX_SCREENS) 46 46 /* Host reported some bad value. Continue in the 1 screen mode. */ … … 258 258 if (!p) 259 259 { 260 LogFunc(("HGSMIHeapAlloc failed\n"));260 // LogFunc(("HGSMIHeapAlloc failed\n")); 261 261 } 262 262 else … … 298 298 int rc = VINF_SUCCESS; 299 299 VBVAREPORTINPUTMAPPING *p; 300 Log(("%s: cOriginX=%d, cOriginY=%d, cWidth=%u, cHeight=%u\n", __PRETTY_FUNCTION__, (int)cOriginX, (int)cOriginX,301 (unsigned)cWidth, (unsigned)cHeight));300 // Log(("%s: cOriginX=%d, cOriginY=%d, cWidth=%u, cHeight=%u\n", __PRETTY_FUNCTION__, (int)cOriginX, (int)cOriginX, 301 // (unsigned)cWidth, (unsigned)cHeight)); 302 302 303 303 /* Allocate the IO buffer. */ … … 317 317 else 318 318 rc = VERR_NO_MEMORY; 319 LogFunc(("rc = %d\n", rc));319 // LogFunc(("rc = %d\n", rc)); 320 320 return rc; 321 321 } … … 341 341 if (!p) 342 342 { 343 LogFunc(("HGSMIHeapAlloc failed\n"));343 // LogFunc(("HGSMIHeapAlloc failed\n")); 344 344 return VERR_NO_MEMORY; 345 345 } … … 374 374 uint32_t u32Flags = 0; 375 375 int rc = VBoxQueryConfHGSMIDef(pCtx, VBOX_VBVA_CONF32_SCREEN_FLAGS, 0, &u32Flags); 376 LogFunc(("u32Flags = 0x%x rc %Rrc\n", u32Flags, rc));376 // LogFunc(("u32Flags = 0x%x rc %Rrc\n", u32Flags, rc)); 377 377 if (RT_FAILURE(rc)) 378 378 u32Flags = 0; -
trunk/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp
r63273 r64156 20 20 #include <VBox/VBoxVideo.h> 21 21 #include <VBox/err.h> 22 #include <VBox/log.h>22 // #include <VBox/log.h> 23 23 #include <iprt/assert.h> 24 24 #include <iprt/string.h> … … 62 62 if (!p) 63 63 { 64 LogFunc(("HGSMIHeapAlloc failed\n"));64 // LogFunc(("HGSMIHeapAlloc failed\n")); 65 65 } 66 66 else … … 104 104 bool bRc = false; 105 105 106 LogFlowFunc(("pVBVA %p\n", pVBVA));106 // LogFlowFunc(("pVBVA %p\n", pVBVA)); 107 107 108 108 #if 0 /* All callers check this */ … … 110 110 #endif 111 111 { 112 LogFunc(("pVBVA %p vbva off 0x%x\n", pVBVA, pCtx->offVRAMBuffer));112 // LogFunc(("pVBVA %p vbva off 0x%x\n", pVBVA, pCtx->offVRAMBuffer)); 113 113 114 114 pVBVA->hostFlags.u32HostEvents = 0; … … 141 141 int32_t cScreen) 142 142 { 143 LogFlowFunc(("\n"));143 // LogFlowFunc(("\n")); 144 144 145 145 pCtx->fHwBufferOverflow = false; … … 178 178 { 179 179 /* Even after flush there is no place. Fail the request. */ 180 LogFunc(("no space in the queue of records!!! first %d, last %d\n",181 pCtx->pVBVA->indexRecordFirst, pCtx->pVBVA->indexRecordFree));180 // LogFunc(("no space in the queue of records!!! first %d, last %d\n", 181 // pCtx->pVBVA->indexRecordFirst, pCtx->pVBVA->indexRecordFree)); 182 182 } 183 183 else … … 241 241 if (!p) 242 242 { 243 LogFunc(("HGSMIHeapAlloc failed\n"));243 // LogFunc(("HGSMIHeapAlloc failed\n")); 244 244 } 245 245 else … … 315 315 if (cbChunk >= cbHwBufferAvail) 316 316 { 317 LogFunc(("1) avail %d, chunk %d\n", cbHwBufferAvail, cbChunk));317 // LogFunc(("1) avail %d, chunk %d\n", cbHwBufferAvail, cbChunk)); 318 318 319 319 vboxHwBufferFlush (pHGSMICtx); … … 323 323 if (cbChunk >= cbHwBufferAvail) 324 324 { 325 LogFunc(("no place for %d bytes. Only %d bytes available after flush. Going to partial writes.\n",326 cb, cbHwBufferAvail));325 // LogFunc(("no place for %d bytes. Only %d bytes available after flush. Going to partial writes.\n", 326 // cb, cbHwBufferAvail)); 327 327 328 328 if (cbHwBufferAvail <= pVBVA->cbPartialWriteThreshold) 329 329 { 330 LogFunc(("Buffer overflow!!!\n"));330 // LogFunc(("Buffer overflow!!!\n")); 331 331 pCtx->fHwBufferOverflow = true; 332 332 Assert(false);
Note:
See TracChangeset
for help on using the changeset viewer.