Changeset 64156 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Oct 5, 2016 1:43:52 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 111134
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp
r63546 r64156 17 17 18 18 #define LOG_DISABLED /* Maybe we can enabled it all the time now? */ 19 /** @note commented out all logging statements to avoid pulling the logging 20 * sub-system into places like the Linux kernel driver. Perhaps the best 21 * thing would be to use return enough information for callers to log what 22 * is needed. */ 19 23 #define LOG_GROUP LOG_GROUP_HGSMI 20 24 #include <iprt/heap.h> … … 22 26 23 27 #include <VBox/HGSMI/HGSMI.h> 24 #include <VBox/log.h>28 // #include <VBox/log.h> 25 29 26 30 … … 272 276 HGSMIBUFFERCONTEXT *pBufferContext) 273 277 { 274 LogFlowFunc(("buffer 0x%x, area %p %x [0x%x;0x%x]\n",275 offBuffer, pArea->pu8Base, pArea->cbArea, pArea->offBase, pArea->offLast));278 // LogFlowFunc(("buffer 0x%x, area %p %x [0x%x;0x%x]\n", 279 // offBuffer, pArea->pu8Base, pArea->cbArea, pArea->offBase, pArea->offLast)); 276 280 277 281 int rc = VINF_SUCCESS; … … 280 284 || offBuffer > pArea->offLast) 281 285 { 282 LogFunc(("offset 0x%x is outside the area [0x%x;0x%x]!!!\n",283 offBuffer, pArea->offBase, pArea->offLast));286 // LogFunc(("offset 0x%x is outside the area [0x%x;0x%x]!!!\n", 287 // offBuffer, pArea->offBase, pArea->offLast)); 284 288 rc = VERR_INVALID_PARAMETER; 285 289 HGSMI_STRICT_ASSERT_FAILED(); … … 293 297 * data size for the buffer at this offset. 294 298 */ 295 LogFlowFunc(("datasize check: header.u32DataSize = 0x%x pArea->offLast - offBuffer = 0x%x\n",296 header.u32DataSize, pArea->offLast - offBuffer));299 // LogFlowFunc(("datasize check: header.u32DataSize = 0x%x pArea->offLast - offBuffer = 0x%x\n", 300 // header.u32DataSize, pArea->offLast - offBuffer)); 297 301 298 302 if (header.u32DataSize <= pArea->offLast - offBuffer) … … 302 306 /* At least both header and tail structures are in the area. Check the checksum. */ 303 307 uint32_t u32Checksum = HGSMIChecksum(offBuffer, &header, &tail); 304 LogFlowFunc(("checksum check: u32Checksum = 0x%x pTail->u32Checksum = 0x%x\n",305 u32Checksum, tail.u32Checksum));308 // LogFlowFunc(("checksum check: u32Checksum = 0x%x pTail->u32Checksum = 0x%x\n", 309 // u32Checksum, tail.u32Checksum)); 306 310 if (u32Checksum == tail.u32Checksum) 307 311 { … … 313 317 else 314 318 { 315 LogFunc(("invalid checksum 0x%x, expected 0x%x!!!\n",316 u32Checksum, tail.u32Checksum));319 // LogFunc(("invalid checksum 0x%x, expected 0x%x!!!\n", 320 // u32Checksum, tail.u32Checksum)); 317 321 rc = VERR_INVALID_STATE; 318 322 HGSMI_STRICT_ASSERT_FAILED(); … … 321 325 else 322 326 { 323 LogFunc(("invalid data size 0x%x, maximum is 0x%x!!!\n",324 header.u32DataSize, pArea->offLast - offBuffer));327 // LogFunc(("invalid data size 0x%x, maximum is 0x%x!!!\n", 328 // header.u32DataSize, pArea->offLast - offBuffer)); 325 329 rc = VERR_TOO_MUCH_DATA; 326 330 HGSMI_STRICT_ASSERT_FAILED(); … … 362 366 HGSMIOFFSET offBuffer) 363 367 { 364 LogFlowFunc(("pArea %p, offBuffer 0x%x\n", pArea, offBuffer));368 // LogFlowFunc(("pArea %p, offBuffer 0x%x\n", pArea, offBuffer)); 365 369 366 370 AssertPtrReturn(pArea, VERR_INVALID_PARAMETER);
Note:
See TracChangeset
for help on using the changeset viewer.