Changeset 13837 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Nov 5, 2008 2:54:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/testcase/tstIntNetR0.cpp
r13835 r13837 256 256 { 257 257 g_cErrors++; 258 RTPrintf("tstIntNetR0: Failed sending %d bytes, rc=% Vrc (%d)\n", cb, rc, INTNETRingGetWritable(&pArgs->pBuf->Send));258 RTPrintf("tstIntNetR0: Failed sending %d bytes, rc=%Rrc (%d)\n", cb, rc, INTNETRingGetWritable(&pArgs->pBuf->Send)); 259 259 } 260 260 cbSent += cb; … … 274 274 { 275 275 g_cErrors++; 276 RTPrintf("tstIntNetR0: send failed, rc=% Vrc\n", rc);276 RTPrintf("tstIntNetR0: send failed, rc=%Rrc\n", rc); 277 277 } 278 278 RTThreadSleep(1); … … 314 314 315 315 default: 316 RTPrintf("tstIntNetR0: receiver thread %.6Rhxs got odd return value % Vrc! cbReceived=%u cLostFrames=%u iFrame=%u\n",316 RTPrintf("tstIntNetR0: receiver thread %.6Rhxs got odd return value %Rrc! cbReceived=%u cLostFrames=%u iFrame=%u\n", 317 317 &pArgs->Mac, rc, cbReceived, cLostFrames, iFrame); 318 318 g_cErrors++; … … 435 435 if (RT_FAILURE(rc)) 436 436 { 437 RTPrintf("tstIntNetR0: INTNETR0Create failed, rc=% Vrc\n");437 RTPrintf("tstIntNetR0: INTNETR0Create failed, rc=%Rrc\n"); 438 438 return 1; 439 439 } … … 458 458 if (RT_FAILURE(rc) || !pBuf0) 459 459 { 460 RTPrintf("tstIntNetR0: INTNETIfGetRing0Buffer failed! pBuf0=%p rc=% Vrc\n", pBuf0, rc);460 RTPrintf("tstIntNetR0: INTNETIfGetRing0Buffer failed! pBuf0=%p rc=%Rrc\n", pBuf0, rc); 461 461 g_cErrors++; 462 462 } … … 465 465 if (RT_FAILURE(rc)) 466 466 { 467 RTPrintf("tstIntNetR0: INTNETIfGetRing0Buffer failed! pBuf1=%p rc=% Vrc\n", pBuf1, rc);467 RTPrintf("tstIntNetR0: INTNETIfGetRing0Buffer failed! pBuf1=%p rc=%Rrc\n", pBuf1, rc); 468 468 g_cErrors++; 469 469 } … … 489 489 if (rc != VERR_TIMEOUT) 490 490 { 491 RTPrintf("tstIntNetR0: INTNETIfWait returned % Vrc expected VERR_TIMEOUT (hIf0)\n", rc);491 RTPrintf("tstIntNetR0: INTNETIfWait returned %Rrc expected VERR_TIMEOUT (hIf0)\n", rc); 492 492 g_cErrors++; 493 493 } … … 495 495 if (rc != VERR_TIMEOUT) 496 496 { 497 RTPrintf("tstIntNetR0: INTNETIfWait returned % Vrc expected VERR_TIMEOUT (hIf1)\n", rc);497 RTPrintf("tstIntNetR0: INTNETIfWait returned %Rrc expected VERR_TIMEOUT (hIf1)\n", rc); 498 498 g_cErrors++; 499 499 } … … 508 508 if (rc != VERR_TIMEOUT) 509 509 { 510 RTPrintf("tstIntNetR0: INTNETIfWait returned % Vrc expected VERR_TIMEOUT (hIf0, 2nd)\n", rc);510 RTPrintf("tstIntNetR0: INTNETIfWait returned %Rrc expected VERR_TIMEOUT (hIf0, 2nd)\n", rc); 511 511 g_cErrors++; 512 512 } … … 543 543 if (RT_FAILURE(rc)) 544 544 { 545 RTPrintf("tstIntNetR0: INTNETIfSend returned % Vrc! (hIf1)\n", rc);545 RTPrintf("tstIntNetR0: INTNETIfSend returned %Rrc! (hIf1)\n", rc); 546 546 g_cErrors++; 547 547 } … … 633 633 if (RT_FAILURE(rc) || RT_FAILURE(rc2)) 634 634 { 635 RTPrintf("tstIntNetR0: Failed waiting on receiver thread 0, rc=% Vrc, rc2=%Vrc\n", rc, rc2);635 RTPrintf("tstIntNetR0: Failed waiting on receiver thread 0, rc=%Rrc, rc2=%Rrc\n", rc, rc2); 636 636 g_cErrors++; 637 637 } … … 642 642 if (RT_FAILURE(rc) || RT_FAILURE(rc2)) 643 643 { 644 RTPrintf("tstIntNetR0: Failed waiting on receiver thread 1, rc=% Vrc, rc2=%Vrc\n", rc, rc2);644 RTPrintf("tstIntNetR0: Failed waiting on receiver thread 1, rc=%Rrc, rc2=%Rrc\n", rc, rc2); 645 645 g_cErrors++; 646 646 } … … 654 654 else 655 655 { 656 RTPrintf("tstIntNetR0: INTNETIfClose failed, rc=% Vrc! (hIf0)\n", rc);656 RTPrintf("tstIntNetR0: INTNETIfClose failed, rc=%Rrc! (hIf0)\n", rc); 657 657 g_cErrors++; 658 658 } … … 666 666 else 667 667 { 668 RTPrintf("tstIntNetR0: INTNETIfClose failed, rc=% Vrc! (hIf1)\n", rc);668 RTPrintf("tstIntNetR0: INTNETIfClose failed, rc=%Rrc! (hIf1)\n", rc); 669 669 g_cErrors++; 670 670 } … … 680 680 else 681 681 { 682 RTPrintf("tstIntNetR0: Waiting on senders failed, rc=% Vrc, rc2=%Vrc\n", rc, rc2);682 RTPrintf("tstIntNetR0: Waiting on senders failed, rc=%Rrc, rc2=%Rrc\n", rc, rc2); 683 683 g_cErrors++; 684 684 } … … 695 695 else 696 696 { 697 RTPrintf("tstIntNetR0: Failed to create threads, rc=% Vrc\n", rc);697 RTPrintf("tstIntNetR0: Failed to create threads, rc=%Rrc\n", rc); 698 698 g_cErrors++; 699 699 } … … 702 702 else 703 703 { 704 RTPrintf("tstIntNetR0: INTNETIfWait returned % Vrc expected VINF_SUCCESS (hIf1)\n", rc);704 RTPrintf("tstIntNetR0: INTNETIfWait returned %Rrc expected VINF_SUCCESS (hIf1)\n", rc); 705 705 g_cErrors++; 706 706 } … … 708 708 else 709 709 { 710 RTPrintf("tstIntNetR0: INTNETIfSend returned % Vrc! (hIf0)\n", rc);710 RTPrintf("tstIntNetR0: INTNETIfSend returned %Rrc! (hIf0)\n", rc); 711 711 g_cErrors++; 712 712 } … … 723 723 else 724 724 { 725 RTPrintf("tstIntNetR0: INTNETOpen failed for the 2nd interface! rc=% Vrc\n", rc);725 RTPrintf("tstIntNetR0: INTNETOpen failed for the 2nd interface! rc=%Rrc\n", rc); 726 726 g_cErrors++; 727 727 } … … 738 738 else 739 739 { 740 RTPrintf("tstIntNetR0: INTNETOpen failed for the 1st interface! rc=% Vrc\n", rc);740 RTPrintf("tstIntNetR0: INTNETOpen failed for the 1st interface! rc=%Rrc\n", rc); 741 741 g_cErrors++; 742 742 }
Note:
See TracChangeset
for help on using the changeset viewer.