- Timestamp:
- Apr 19, 2008 8:31:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstAvl.cpp
r8170 r8190 464 464 if (!pNode) 465 465 { 466 printf("\ntstAvl: FAILURE - oGCPhys - linear root remove i=%d Key=%d\n", i, Key);466 printf("\ntstAvl: FAILURE - oGCPhys - linear root remove i=%d Key=%d\n", i, (unsigned)Key); 467 467 return 1; 468 468 } … … 474 474 if (pNode) 475 475 { 476 printf("\ntstAvl: FAILURE - oGCPhys - linear root negative remove i=%d Key=%d\n", i, Key);476 printf("\ntstAvl: FAILURE - oGCPhys - linear root negative remove i=%d Key=%d\n", i, (unsigned)Key); 477 477 return 1; 478 478 } … … 524 524 if (pNode->Key - (unsigned long)i >= 8 * 4) 525 525 { 526 printf("\ntstAvl: FAILURE - oGCPhys - sparse remove i=%d j=%d Key=%d\n", i, j, pNode->Key);526 printf("\ntstAvl: FAILURE - oGCPhys - sparse remove i=%d j=%d Key=%d\n", i, j, (unsigned)pNode->Key); 527 527 return 1; 528 528 } … … 608 608 if (pNode->Key != Key) 609 609 { 610 printf("\ntstAvl: FAILURE - oGCPhys - random remove i=%d Key=%#x pNode->Key=%#x\n", i, Key, pNode->Key);610 printf("\ntstAvl: FAILURE - oGCPhys - random remove i=%d Key=%#x pNode->Key=%#x\n", i, Key, (unsigned)pNode->Key); 611 611 return 1; 612 612 } … … 630 630 int avlrogcphys(void) 631 631 { 632 RTGCPHYSi;633 RTGCPHYSj;634 RTGCPHYSk;632 unsigned i; 633 unsigned j; 634 unsigned k; 635 635 PAVLROGCPHYSTREE pTree = (PAVLROGCPHYSTREE)calloc(sizeof(*pTree), 1); 636 636 … … 649 649 if (!RTAvlroGCPhysInsert(pTree, pNode)) 650 650 { 651 printf("tstAvl: FAILURE - roGCPhys - linear insert i=%d\n", i);651 printf("tstAvl: FAILURE - roGCPhys - linear insert i=%d\n", (unsigned)i); 652 652 return 1; 653 653 } … … 681 681 if (pNode->Key > i || pNode->KeyLast < i) 682 682 { 683 printf("tstAvl: FAILURE - roGCPhys - linear get i=%d Key=%d KeyLast=%d\n", i, pNode->Key,pNode->KeyLast);683 printf("tstAvl: FAILURE - roGCPhys - linear get i=%d Key=%d KeyLast=%d\n", i, (unsigned)pNode->Key, (unsigned)pNode->KeyLast); 684 684 return 1; 685 685 } … … 772 772 if (!pNode) 773 773 { 774 printf("tstAvl: FAILURE - roGCPhys - sparse get i=%d j=%d KeyBase=%d\n", i, j, KeyBase);774 printf("tstAvl: FAILURE - roGCPhys - sparse get i=%d j=%d KeyBase=%d\n", i, j, (unsigned)KeyBase); 775 775 return 1; 776 776 } 777 777 if (pNode->Key > KeyBase || pNode->KeyLast < KeyBase) 778 778 { 779 printf("tstAvl: FAILURE - roGCPhys - sparse get i=%d j=%d KeyBase=%d pNode->Key=%d\n", i, j, KeyBase,pNode->Key);779 printf("tstAvl: FAILURE - roGCPhys - sparse get i=%d j=%d KeyBase=%d pNode->Key=%d\n", i, j, (unsigned)KeyBase, (unsigned)pNode->Key); 780 780 return 1; 781 781 } … … 820 820 if (RTAvlroGCPhysRangeRemove(pTree, Key) != pNode) 821 821 { 822 printf("tstAvl: FAILURE - roGCPhys - sparse remove i=%d j=%d Key=%d\n", i, j, Key);822 printf("tstAvl: FAILURE - roGCPhys - sparse remove i=%d j=%d Key=%d\n", i, j, (unsigned)Key); 823 823 return 1; 824 824 }
Note:
See TracChangeset
for help on using the changeset viewer.