# HG changeset patch # User diego # Date 1197297559 0 # Node ID 9e13376e0daaf6797f27dd59c0899627d8667c9e # Parent 643c5e2b6b564fab39f136a4627821be689d6248 Fix printf format string length modifiers, removes about a trillion warnings. diff -r 643c5e2b6b56 -r 9e13376e0daa TOOLS/realcodecs/14_4.c --- a/TOOLS/realcodecs/14_4.c Mon Dec 10 14:13:34 2007 +0000 +++ b/TOOLS/realcodecs/14_4.c Mon Dec 10 14:39:19 2007 +0000 @@ -114,7 +114,7 @@ usecs+=1000000; --secs; } - fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); + fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -151,10 +151,10 @@ ulong RACloseCodec(ulong p1) { ulong result; - fprintf(stderr, "RACloseCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RACloseCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raCloseCodec)(p1); // closeDll(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -164,12 +164,12 @@ ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -193,34 +193,34 @@ // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -228,7 +228,7 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -236,8 +236,8 @@ ulong result; // int temp[256]; // unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); // memset(temp,0x77,256*4); @@ -252,18 +252,18 @@ // hexdump((void*)temp[6], 32); // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d)\n", p1, p1); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld)\n", p1, p1); hexdump((void*)p1, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -271,22 +271,22 @@ ulong result; // ulong numflavors, flavor, numprop=0, result1=0; // unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); // hexdump((void*)p1, 44); result=(*raSetFlavor)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 0 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -164,12 +164,12 @@ ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -193,34 +193,34 @@ // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -228,7 +228,7 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -236,8 +236,8 @@ ulong result; // int temp[256]; // unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); // memset(temp,0x77,256*4); @@ -252,18 +252,18 @@ // hexdump((void*)temp[6], 32); // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d)\n", p1, p1); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld)\n", p1, p1); hexdump((void*)p1, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -271,22 +271,22 @@ ulong result; // ulong numflavors, flavor, numprop=0, result1=0; // unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); // hexdump((void*)p1, 44); result=(*raSetFlavor)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 0 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -211,12 +211,12 @@ ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); - fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); + fprintf(stderr, "ulong dstcnt=0x%0lx, ",p5); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); // hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -240,62 +240,62 @@ // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAEncode(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAEncode(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAEncode(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raEncode)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFlush(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAFlush(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAFlush(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raFlush)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeEncoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raFreeEncoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -303,7 +303,7 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -311,7 +311,7 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors2(void)\n"); result=(*raGetNumberOfFlavors2)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -319,8 +319,8 @@ ulong result; int temp[256]; unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); memset(temp,0x77,256*4); @@ -335,38 +335,38 @@ hexdump((void*)temp[6], 32); // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAInitEncoder(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "RAInitEncoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitEncoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); result=(*raInitEncoder)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAOpenCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raOpenCodec)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1,ulong p2) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d), p2=%p)\n", p1, p1, p2); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld), p2=%p)\n", p1, p1, p2); hexdump((void*)p1, 44); hexdump((void*)p2, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p2, 44); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -374,23 +374,23 @@ ulong result, numprop=0, result1=0; ulong numflavors, flavor; unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p1, 44); hexdump((void*)p1, 44); result=(*raSetFlavor)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 1 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]); + fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%ld,%ld,%ld] \n", p1, p2, p1[0],p1[1],p1[2]); /* if(p1[0]!=17) return 0; @@ -209,7 +209,7 @@ return 0; } } -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 12); // if (pp1[0]==0x24) { // hexdump((void*)(pp1[2]),128); @@ -217,19 +217,19 @@ // tic(); result=(*rvyuvCustomMessage)(p1,p2); // toc(); - fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0x(%d)\n", result, result); + fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0lx(%ld)\n", result, result); return result; } ulong RV20toYUV420Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*rvyuvFree)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "RV20toYUV420Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -239,10 +239,10 @@ ulong result; fprintf(stderr, "#R# RV20toYUV420HiveMessage(%p,%p)\n", p1, p2); // p1->constant,p1->width,p1->height,p1->format1,p1->format2); -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, sizeof(struct init_data)); - fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,">HIVE %ld %p\n",p1[0],p1[1]); if(p1[0]!=0) return 0; @@ -268,11 +268,11 @@ // p1[0]=0; // p1[1]=0x20000000; - fprintf(stderr," 0x%0x(%d)\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result); return result; } @@ -291,8 +291,8 @@ ulong RV20toYUV420Init(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); fprintf(stderr,"COPY INIT DATA!\n"); memcpy(i_temp,p1,24); @@ -308,7 +308,7 @@ memset(i_temp,0x77,1000); // hexdump(*((void**)p2), 512); - fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -374,7 +374,7 @@ crc_src=build_crc(pch, pp3[0]); pp4=pp3[3]; - fprintf(stderr,"transin1[%p]: {%d/%d} ",pp4,pp3[2],pp3[0]); + fprintf(stderr,"transin1[%p]: {%ld/%ld} ",pp4,pp3[2],pp3[0]); // pp4[0],pp4[1],pp4[2],pp4[3], // pp4[4],pp4[5],pp4[6],pp4[7]); @@ -382,7 +382,7 @@ memcpy(temp,pp4,8*(pp3[2]+1)); for(i=0;i<=pp3[2];i++){ - fprintf(stderr," %p(%d)",temp[i*2],temp[i*2+1]); + fprintf(stderr," %p(%ld)",temp[i*2],temp[i*2+1]); } fprintf(stderr,"\n"); @@ -428,9 +428,9 @@ // pp3=p3; // TRANSFORM: -// fprintf(stderr, "TRAFO:\t%d\t%d\t%d\t%.8X\t%.8X\t%d\n", +// fprintf(stderr, "TRAFO:\t%ld\t%ld\t%ld\t%.8lX\t%.8lX\t%ld\n", // pp3[5], pp3[2], pp3[0], crc_src, crc0, pp3[4]); - fprintf(stderr, "#R# Decode: %d(%d) [%08X] pts=%d -> %d [%08X]\n", + fprintf(stderr, "#R# Decode: %ld(%ld) [%08lX] pts=%ld -> %ld [%08lX]\n", pp3[0],pp3[2],crc_src,pp3[5], result,crc0); @@ -438,70 +438,70 @@ // hexdump((char*)p2, /*64*/ pp4[3]*pp4[4]/2); // hexdump((void*)p4, 20); // hexdump((void*)p5, 512); -// fprintf(stderr, "RV20toYUV420Transform --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420Transform --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0lx(%ld))\n", p1, p1); tic(); result=(*rvyuvRNFRUFree)(p1); toc(); - fprintf(stderr, "RV20toYUV420_RN_FRU_Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420_RN_FRU_Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_GetFrame(ulong p1,ulong p2,ulong p3) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); +// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUGetFrame)(p1,p2,p3); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Init(ulong p1,ulong p2,ulong p3) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_Init(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Init(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUInit)(p1,p2,p3); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_Init --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Setup(ulong p1,ulong p2,ulong p3,ulong p4, ulong p5,ulong p6,ulong p7,ulong p8) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); -// fprintf(stderr, "ulong p4=0x%0x(%d),\n\t", p4, p4); -// fprintf(stderr, "ulong p5=0x%0x(%d), ", p5, p5); -// fprintf(stderr, "ulong p6=0x%0x(%d),\n\t", p6, p6); -// fprintf(stderr, "ulong p7=0x%0x(%d), ", p7, p7); -// fprintf(stderr, "ulong p8=0x%0x(%d))\n", p8, p8); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); +// fprintf(stderr, "ulong p4=0x%0lx(%ld),\n\t", p4, p4); +// fprintf(stderr, "ulong p5=0x%0lx(%ld), ", p5, p5); +// fprintf(stderr, "ulong p6=0x%0lx(%ld),\n\t", p6, p6); +// fprintf(stderr, "ulong p7=0x%0lx(%ld), ", p7, p7); +// fprintf(stderr, "ulong p8=0x%0lx(%ld))\n", p8, p8); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUSetup)(p1,p2,p3,p4,p5,p6,p7,p8); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup --> 0x%0lx(%ld)\n\n\n", result, result); return result; } /*void SetDLLAccessPath(ulong p1) { - fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); (*setDLLAccessPath)(p1); hexdump((void*)p1, 44); diff -r 643c5e2b6b56 -r 9e13376e0daa TOOLS/realcodecs/drv3.c --- a/TOOLS/realcodecs/drv3.c Mon Dec 10 14:13:34 2007 +0000 +++ b/TOOLS/realcodecs/drv3.c Mon Dec 10 14:39:19 2007 +0000 @@ -138,7 +138,7 @@ usecs+=1000000; --secs; } -// fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); +// fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -177,7 +177,7 @@ ulong result; // ulong *pp1=p1; ulong temp[16]; - fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]); + fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%ld,%ld,%ld] \n", p1, p2, p1[0],p1[1],p1[2]); #if 1 if(p1[0]==0x24){ hexdump(p1[2],16); @@ -189,7 +189,7 @@ } #endif -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 12); // if (pp1[0]==0x24) { // hexdump((void*)(pp1[2]),128); @@ -197,19 +197,19 @@ // tic(); result=(*rvyuvCustomMessage)(p1,p2); // toc(); - fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0x(%d)\n", result, result); + fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0lx(%ld)\n", result, result); return result; } ulong RV20toYUV420Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*rvyuvFree)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "RV20toYUV420Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -219,10 +219,10 @@ ulong result; fprintf(stderr, "#R# RV20toYUV420HiveMessage(%p,%p)\n", p1, p2); // p1->constant,p1->width,p1->height,p1->format1,p1->format2); -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, sizeof(struct init_data)); - fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,">HIVE %ld %p\n",p1[0],p1[1]); fprintf(stderr,"COPY INIT DATA!\n"); memset(h_temp,0x77,1000); @@ -243,11 +243,11 @@ // p1[0]=0; // p1[1]=0x20000000; - fprintf(stderr," 0x%0x(%d)\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result); return result; } @@ -266,8 +266,8 @@ ulong RV20toYUV420Init(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); fprintf(stderr,"COPY INIT DATA!\n"); memcpy(i_temp,p1,24); @@ -283,7 +283,7 @@ memset(i_temp,0x77,1000); // hexdump(*((void**)p2), 512); - fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -349,7 +349,7 @@ crc_src=build_crc(pch, pp3[0]); pp4=pp3[3]; - fprintf(stderr,"transin1[%p]: {%d/%d} ",pp4,pp3[2],pp3[0]); + fprintf(stderr,"transin1[%p]: {%ld/%ld} ",pp4,pp3[2],pp3[0]); // pp4[0],pp4[1],pp4[2],pp4[3], // pp4[4],pp4[5],pp4[6],pp4[7]); @@ -357,7 +357,7 @@ memcpy(temp,pp4,8*(pp3[2]+1)); for(i=0;i<=pp3[2];i++){ - fprintf(stderr," %p(%d)",temp[i*2],temp[i*2+1]); + fprintf(stderr," %p(%ld)",temp[i*2],temp[i*2+1]); } fprintf(stderr,"\n"); @@ -403,9 +403,9 @@ // pp3=p3; // TRANSFORM: -// fprintf(stderr, "TRAFO:\t%d\t%d\t%d\t%.8X\t%.8X\t%d\n", +// fprintf(stderr, "TRAFO:\t%ld\t%ld\t%ld\t%.8lX\t%.8lX\t%ld\n", // pp3[5], pp3[2], pp3[0], crc_src, crc0, pp3[4]); - fprintf(stderr, "#R# Decode: %d(%d) [%08X] pts=%d -> %d [%08X]\n", + fprintf(stderr, "#R# Decode: %ld(%ld) [%08lX] pts=%ld -> %ld [%08lX]\n", pp3[0],pp3[2],crc_src,pp3[5], result,crc0); @@ -413,70 +413,70 @@ // hexdump((char*)p2, /*64*/ pp4[3]*pp4[4]/2); // hexdump((void*)p4, 20); // hexdump((void*)p5, 512); -// fprintf(stderr, "RV20toYUV420Transform --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420Transform --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0lx(%ld))\n", p1, p1); tic(); result=(*rvyuvRNFRUFree)(p1); toc(); - fprintf(stderr, "RV20toYUV420_RN_FRU_Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420_RN_FRU_Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_GetFrame(ulong p1,ulong p2,ulong p3) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); +// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUGetFrame)(p1,p2,p3); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Init(ulong p1,ulong p2,ulong p3) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_Init(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Init(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUInit)(p1,p2,p3); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_Init --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Setup(ulong p1,ulong p2,ulong p3,ulong p4, ulong p5,ulong p6,ulong p7,ulong p8) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); -// fprintf(stderr, "ulong p4=0x%0x(%d),\n\t", p4, p4); -// fprintf(stderr, "ulong p5=0x%0x(%d), ", p5, p5); -// fprintf(stderr, "ulong p6=0x%0x(%d),\n\t", p6, p6); -// fprintf(stderr, "ulong p7=0x%0x(%d), ", p7, p7); -// fprintf(stderr, "ulong p8=0x%0x(%d))\n", p8, p8); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); +// fprintf(stderr, "ulong p4=0x%0lx(%ld),\n\t", p4, p4); +// fprintf(stderr, "ulong p5=0x%0lx(%ld), ", p5, p5); +// fprintf(stderr, "ulong p6=0x%0lx(%ld),\n\t", p6, p6); +// fprintf(stderr, "ulong p7=0x%0lx(%ld), ", p7, p7); +// fprintf(stderr, "ulong p8=0x%0lx(%ld))\n", p8, p8); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUSetup)(p1,p2,p3,p4,p5,p6,p7,p8); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup --> 0x%0lx(%ld)\n\n\n", result, result); return result; } /*void SetDLLAccessPath(ulong p1) { - fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); (*setDLLAccessPath)(p1); hexdump((void*)p1, 44); diff -r 643c5e2b6b56 -r 9e13376e0daa TOOLS/realcodecs/drv4.c --- a/TOOLS/realcodecs/drv4.c Mon Dec 10 14:13:34 2007 +0000 +++ b/TOOLS/realcodecs/drv4.c Mon Dec 10 14:39:19 2007 +0000 @@ -110,7 +110,7 @@ usecs+=1000000; --secs; } -// fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); +// fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -149,7 +149,7 @@ ulong result; // ulong *pp1=p1; // ulong temp[16]; - fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]); + fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%ld,%ld,%ld] \n", p1, p2, p1[0],p1[1],p1[2]); #if 0 if(p1[0]==0x24){ hexdump(p1[2],64); @@ -161,7 +161,7 @@ } #endif -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 12); // if (pp1[0]==0x24) { // hexdump((void*)(pp1[2]),128); @@ -169,19 +169,19 @@ // tic(); result=(*rvyuvCustomMessage)(p1,p2); // toc(); - fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0x(%d)\n", result, result); + fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0lx(%ld)\n", result, result); return result; } ulong RV20toYUV420Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*rvyuvFree)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "RV20toYUV420Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -191,10 +191,10 @@ ulong result; fprintf(stderr, "#R# RV20toYUV420HiveMessage(%p,%p)\n", p1, p2); // p1->constant,p1->width,p1->height,p1->format1,p1->format2); -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, sizeof(struct init_data)); - fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,">HIVE %ld %p\n",p1[0],p1[1]); fprintf(stderr,"COPY INIT DATA!\n"); memset(h_temp,0x77,1000); @@ -215,11 +215,11 @@ // p1[0]=0; // p1[1]=0x20000000; - fprintf(stderr," 0x%0x(%d)\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result); return result; } @@ -238,8 +238,8 @@ ulong RV20toYUV420Init(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); fprintf(stderr,"COPY INIT DATA!\n"); memcpy(i_temp,p1,24); @@ -255,7 +255,7 @@ memset(i_temp,0x77,1000); // hexdump(*((void**)p2), 512); - fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -321,7 +321,7 @@ crc_src=build_crc(pch, pp3[0]); pp4=pp3[3]; - fprintf(stderr,"transin1[%p]: {%d/%d} ",pp4,pp3[2],pp3[0]); + fprintf(stderr,"transin1[%p]: {%ld/%ld} ",pp4,pp3[2],pp3[0]); // pp4[0],pp4[1],pp4[2],pp4[3], // pp4[4],pp4[5],pp4[6],pp4[7]); @@ -329,7 +329,7 @@ memcpy(temp,pp4,8*(pp3[2]+1)); for(i=0;i<=pp3[2];i++){ - fprintf(stderr," %p(%d)",temp[i*2],temp[i*2+1]); + fprintf(stderr," %p(%ld)",temp[i*2],temp[i*2+1]); } fprintf(stderr,"\n"); @@ -375,9 +375,9 @@ // pp3=p3; // TRANSFORM: -// fprintf(stderr, "TRAFO:\t%d\t%d\t%d\t%.8X\t%.8X\t%d\n", +// fprintf(stderr, "TRAFO:\t%ld\t%ld\t%ld\t%.8lX\t%.8lX\t%ld\n", // pp3[5], pp3[2], pp3[0], crc_src, crc0, pp3[4]); - fprintf(stderr, "#R# Decode: %d(%d) [%08X] pts=%d -> %d [%08X]\n", + fprintf(stderr, "#R# Decode: %ld(%ld) [%08lX] pts=%ld -> %ld [%08lX]\n", pp3[0],pp3[2],crc_src,pp3[5], result,crc0); @@ -385,7 +385,7 @@ // hexdump((char*)p2, /*64*/ pp4[3]*pp4[4]/2); // hexdump((void*)p4, 20); // hexdump((void*)p5, 512); -// fprintf(stderr, "RV20toYUV420Transform --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420Transform --> 0x%0lx(%ld)\n\n\n", result, result); return result; } diff -r 643c5e2b6b56 -r 9e13376e0daa TOOLS/realcodecs/ra.c --- a/TOOLS/realcodecs/ra.c Mon Dec 10 14:13:34 2007 +0000 +++ b/TOOLS/realcodecs/ra.c Mon Dec 10 14:39:19 2007 +0000 @@ -160,7 +160,7 @@ usecs+=1000000; --secs; } - fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); + fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -197,21 +197,21 @@ ulong RACloseCodec(ulong p1) { ulong result; - fprintf(stderr, "RACloseCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RACloseCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raCloseCodec)(p1); // closeDll(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong p5,ulong p6) { ulong result; - fprintf(stderr, "RADecode(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d),", p3, p3); - fprintf(stderr, "\tulong p4=0x%0x(%d),\n", p4, p4); - fprintf(stderr, "ulong p5=0x%0x(%d), ", p5, p5); - fprintf(stderr, "ulong p6=0x%0x(%d))\n", p6, p6); + fprintf(stderr, "RADecode(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld),", p3, p3); + fprintf(stderr, "\tulong p4=0x%0lx(%ld),\n", p4, p4); + fprintf(stderr, "ulong p5=0x%0lx(%ld), ", p5, p5); + fprintf(stderr, "ulong p6=0x%0lx(%ld))\n", p6, p6); hexdump((void*)p1, 44); hexdump((void*)p2, p3); hexdump((void*)p4, 80); @@ -222,62 +222,62 @@ hexdump((void*)p1, 44); hexdump((void*)p4, 80); hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAEncode(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAEncode(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAEncode(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raEncode)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFlush(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAFlush(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAFlush(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raFlush)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeEncoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raFreeEncoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -285,7 +285,7 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -293,48 +293,48 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors2(void)\n"); result=(*raGetNumberOfFlavors2)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAInitDecoder(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 44); hexdump((void*)p1, 44); result=(*raInitDecoder)(p1,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAInitEncoder(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "RAInitEncoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitEncoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); result=(*raInitEncoder)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAOpenCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raOpenCodec)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -342,22 +342,22 @@ ulong result; // ulong numflavors, flavor, numprop=0, result1=0; // unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p1, 44); hexdump((void*)p1, 44); result=(*raSetFlavor)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); /* fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_Open --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_Close(ulong p1) { ulong result; - fprintf(stderr, "PNCodec_Close(PNCMain *pncMain=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "PNCodec_Close(PNCMain *pncMain=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*pncClose)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNCodec_Close --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_Close --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_GetUIName(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "PNCodec_GetUIName(PNCMain *pncMain=0x%0x(%d), ", p1, p1); - fprintf(stderr, "char **appname=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "PNCodec_GetUIName(PNCMain *pncMain=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "char **appname=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 0x1278); // hexdump((void*)p2, 128); tic(); @@ -261,73 +261,73 @@ toc(); // hexdump((void*)p1, 0x1278); // hexdump((void*)p2, 128); - fprintf(stderr, "PNCodec_GetUIName --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_GetUIName --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_GetVersion(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "PNCodec_GetVersion(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "PNCodec_GetVersion(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 44); tic(); result=(*pncGetVersion)(p1,p2); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNCodec_GetVersion --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_GetVersion --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_QueryMediaFormat(ulong p1,ulong p2,ulong p3,ulong p4) { ulong result; - fprintf(stderr, "PNCodec_QueryMediaFormat(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d),", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d),\n", p4, p4); + fprintf(stderr, "PNCodec_QueryMediaFormat(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld),", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld),\n", p4, p4); // hexdump((void*)p1, 44); tic(); result=(*pncQueryMediaFormat)(p1,p2,p3,p4); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNCodec_QueryMediaFormat --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_QueryMediaFormat --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_PreferredMediaFormat(ulong p1,ulong p2,ulong p3,ulong p4) { ulong result; - fprintf(stderr, "PNCodec_PreferredMediaFormat(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d),", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d),\n", p4, p4); + fprintf(stderr, "PNCodec_PreferredMediaFormat(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld),", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld),\n", p4, p4); // hexdump((void*)p1, 44); tic(); result=(*pncPreferredMediaFormat)(p1,p2,p3,p4); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNCodec_PreferredMediaFormat --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_PreferredMediaFormat --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_GetMediaFormats(ulong p1,ulong p2,ulong p3,ulong p4) { ulong result; - fprintf(stderr, "PNCodec_GetMediaFormats(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d),", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d),\n", p4, p4); + fprintf(stderr, "PNCodec_GetMediaFormats(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld),", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld),\n", p4, p4); // hexdump((void*)p1, 44); tic(); result=(*pncGetMediaFormats)(p1,p2,p3,p4); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNCodec_GetMediaFormats --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_GetMediaFormats --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNCodec_StreamOpen(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "PNCodec_StreamOpen(PNCMain *pncMain=0x%0x(%d), ", p1, p1); - fprintf(stderr, "PNSMain **pnsMain=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong **p3=0x%0x(%d),\n", p3, p3); + fprintf(stderr, "PNCodec_StreamOpen(PNCMain *pncMain=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "PNSMain **pnsMain=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong **p3=0x%0lx(%ld),\n", p3, p3); // hexdump((void*)p1, 0x1278); // hexdump((void*)p2, 128); // hexdump((void*)p3, 4); @@ -340,32 +340,32 @@ // hexdump((void*)p3, 128); hexdump(*((void**)p2), 128); hexdump(**((void***)p2), 128); - fprintf(stderr, "PNCodec_StreamOpen --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNCodec_StreamOpen --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_OpenSettingsBox(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "PNStream_OpenSettingsBox(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); + fprintf(stderr, "PNStream_OpenSettingsBox(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); // hexdump((void*)p1, 44); tic(); result=(*pnsOpenSettingsBox)(p1,p2); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNStream_OpenSettingsBox --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_OpenSettingsBox --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_GetIPNUnknown(ulong p1) { ulong result; - fprintf(stderr, "PNStream_GetIPNUnknown(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "PNStream_GetIPNUnknown(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*pnsGetIPNUnknown)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNStream_GetIPNUnknown --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_GetIPNUnknown --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -373,10 +373,10 @@ ulong result; int i=0; void **pp; - fprintf(stderr, "PNStream_SetDataCallback(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d),", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "PNStream_SetDataCallback(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld),", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p1, 0x24); hexdump((void*)p2, 32); hexdump((void*)p3, 4); @@ -401,47 +401,47 @@ // hexdump((void*)p2, 256); // hexdump((void*)p3, 4); hexdump(*((void**)p3), 256); - fprintf(stderr, "PNStream_SetDataCallback --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_SetDataCallback --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_SetProperty(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "PNStream_SetProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "PNStream_SetProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); hexdump((void*)p3, 4); tic(); result=(*pnsSetProperty)(p1,p2,p3); toc(); // hexdump((void*)p3, 44); - fprintf(stderr, "PNStream_SetProperty --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_SetProperty --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_GetProperty(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "PNStream_GetProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "PNStream_GetProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p3, 44); tic(); result=(*pnsGetProperty)(p1,p2,p3); toc(); hexdump((void*)p3, 4); - fprintf(stderr, "PNStream_GetProperty --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_GetProperty --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_Close(ulong p1) { ulong result; - fprintf(stderr, "PNStream_Close(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "PNStream_Close(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*pnsClose)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNStream_Close --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_Close --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -449,75 +449,75 @@ ulong PNStream_GetStreamHeaderSize(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "PNStream_GetStreamHeaderSize(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); + fprintf(stderr, "PNStream_GetStreamHeaderSize(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); // hexdump((void*)p2, 44); tic(); result=(*pnsGetStreamHeaderSize)(p1,p2); toc(); hexdump((void*)p2, 4); streamHeaderSize=*((ulong *)p2); - fprintf(stderr, "PNStream_GetStreamHeaderSize --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_GetStreamHeaderSize --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_GetStreamHeader(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "PNStream_GetStreamHeader(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); + fprintf(stderr, "PNStream_GetStreamHeader(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); // hexdump((void*)p2, 44); tic(); result=(*pnsGetStreamHeader)(p1,p2); toc(); hexdump((void*)p2, streamHeaderSize); - fprintf(stderr, "PNStream_GetStreamHeader --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_GetStreamHeader --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_Input(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "PNStream_Input(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "PNStream_Input(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); hexdump((void*)p3, 4); tic(); result=(*pnsInput)(p1,p2,p3); toc(); // hexdump((void*)p3, 44); - fprintf(stderr, "PNStream_Input --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_Input --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_SetOutputPacketSize(ulong p1,ulong p2,ulong p3,ulong p4) { ulong result; - fprintf(stderr, "PNStream_SetOutputPacketSize(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d),", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "PNStream_SetOutputPacketSize(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld),", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); // hexdump((void*)p1, 44); tic(); result=(*pnsSetOutputPacketSize)(p1,p2,p3,p4); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNStream_SetOutputPacketSize --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_SetOutputPacketSize --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong PNStream_GetInputBufferSize(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "PNStream_GetInputBufferSize(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "PNStream_GetInputBufferSize(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 44); tic(); result=(*pnsGetInputBufferSize)(p1,p2); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "PNStream_GetInputBufferSize --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "PNStream_GetInputBufferSize --> 0x%0lx(%ld)\n\n\n", result, result); return result; } void SetDLLAccessPath(ulong p1) { - fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); (*setDLLAccessPath)(p1); // hexdump((void*)p1, 44); diff -r 643c5e2b6b56 -r 9e13376e0daa TOOLS/realcodecs/sipr.c --- a/TOOLS/realcodecs/sipr.c Mon Dec 10 14:13:34 2007 +0000 +++ b/TOOLS/realcodecs/sipr.c Mon Dec 10 14:39:19 2007 +0000 @@ -183,7 +183,7 @@ usecs+=1000000; --secs; } - fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); + fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -220,10 +220,10 @@ ulong RACloseCodec(ulong p1) { ulong result; - fprintf(stderr, "RACloseCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RACloseCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raCloseCodec)(p1); // closeDll(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -233,12 +233,12 @@ ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); // hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -275,62 +275,62 @@ // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAEncode(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAEncode(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAEncode(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raEncode)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFlush(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAFlush(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAFlush(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raFlush)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeEncoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raFreeEncoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -338,7 +338,7 @@ ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -346,8 +346,8 @@ ulong result; // int temp[256]; // unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); @@ -368,36 +368,36 @@ // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAInitEncoder(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "RAInitEncoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitEncoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); result=(*raInitEncoder)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAOpenCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raOpenCodec)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -405,23 +405,23 @@ ulong result, numprop=0, result1=0; ulong numflavors, flavor; unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 44); // hexdump((void*)p1, 44); result=(*raSetFlavor)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 1 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=3;//raGetNumberOfFlavors(); flavor=0; while (flavor