[MPlayer-cvslog] r25341 - in trunk/TOOLS/realcodecs: 14_4.c 28_8.c cook.c drv2.c drv3.c drv4.c ra.c rv30.c sipr.c

diego subversion at mplayerhq.hu
Mon Dec 10 15:39:19 CET 2007


Author: diego
Date: Mon Dec 10 15:39:19 2007
New Revision: 25341

Log:
Fix printf format string length modifiers, removes about a trillion warnings.


Modified:
   trunk/TOOLS/realcodecs/14_4.c
   trunk/TOOLS/realcodecs/28_8.c
   trunk/TOOLS/realcodecs/cook.c
   trunk/TOOLS/realcodecs/drv2.c
   trunk/TOOLS/realcodecs/drv3.c
   trunk/TOOLS/realcodecs/drv4.c
   trunk/TOOLS/realcodecs/ra.c
   trunk/TOOLS/realcodecs/rv30.c
   trunk/TOOLS/realcodecs/sipr.c

Modified: trunk/TOOLS/realcodecs/14_4.c
==============================================================================
--- trunk/TOOLS/realcodecs/14_4.c	(original)
+++ trunk/TOOLS/realcodecs/14_4.c	Mon Dec 10 15:39:19 2007
@@ -114,7 +114,7 @@ void toc() {
 		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 @@ void hexdump(void *pos, int len) {
 
 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 RADecode(ulong p1,ulong p2,ulong p
 	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 @@ ulong RADecode(ulong p1,ulong p2,ulong p
 //	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 RAGetNumberOfFlavors(void) {
 	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 RAInitDecoder(ulong p1,ulong p2) {
 	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 @@ ulong RAInitDecoder(ulong p1,ulong p2) {
 //	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 RASetFlavor(ulong p1) {
 	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<numflavors) {
-		fprintf(stderr, "************ Flavor %d *************\n\n", flavor);
+		fprintf(stderr, "************ Flavor %ld *************\n\n", flavor);
 		numprop=0;
 		while (numprop<32) {
 			result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property);
-			fprintf(stderr, "property %d=%d, result=0x%0x\n\n",
+			fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n",
 				numprop, property, result1);
 			hexdump((void*)result1, property);
 			numprop++;

Modified: trunk/TOOLS/realcodecs/28_8.c
==============================================================================
--- trunk/TOOLS/realcodecs/28_8.c	(original)
+++ trunk/TOOLS/realcodecs/28_8.c	Mon Dec 10 15:39:19 2007
@@ -114,7 +114,7 @@ void toc() {
 		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 @@ void hexdump(void *pos, int len) {
 
 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 RADecode(ulong p1,ulong p2,ulong p
 	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 @@ ulong RADecode(ulong p1,ulong p2,ulong p
 //	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 RAGetNumberOfFlavors(void) {
 	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 RAInitDecoder(ulong p1,ulong p2) {
 	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 @@ ulong RAInitDecoder(ulong p1,ulong p2) {
 //	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 RASetFlavor(ulong p1) {
 	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<numflavors) {
-		fprintf(stderr, "************ Flavor %d *************\n\n", flavor);
+		fprintf(stderr, "************ Flavor %ld *************\n\n", flavor);
 		numprop=0;
 		while (numprop<32) {
 			result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property);
-			fprintf(stderr, "property %d=%d, result=0x%0x\n\n",
+			fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n",
 				numprop, property, result1);
 			hexdump((void*)result1, property);
 			numprop++;

Modified: trunk/TOOLS/realcodecs/cook.c
==============================================================================
--- trunk/TOOLS/realcodecs/cook.c	(original)
+++ trunk/TOOLS/realcodecs/cook.c	Mon Dec 10 15:39:19 2007
@@ -161,7 +161,7 @@ void toc() {
 		usecs+=1000000;
 		--secs;
 	}
-	fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs);
+	fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs);
 }
 
 
@@ -198,10 +198,10 @@ void hexdump(void *pos, int len) {
 
 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;
 }
 
@@ -211,12 +211,12 @@ ulong RADecode(ulong p1,ulong p2,ulong p
 	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 @@ ulong RADecode(ulong p1,ulong p2,ulong p
 //	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 RAGetNumberOfFlavors(void) {
 	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 RAGetNumberOfFlavors2(void) {
 	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 RAInitDecoder(ulong p1,ulong p2) {
 	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 @@ ulong RAInitDecoder(ulong p1,ulong p2) {
 	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 RASetFlavor(ulong p1,ulong p2) {
 	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<numflavors) {
-		fprintf(stderr, "************ Flavor %d *************\n\n", flavor);
+		fprintf(stderr, "************ Flavor %ld *************\n\n", flavor);
 		numprop=0;
 		while (numprop<32) {
 			result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property);
-			fprintf(stderr, "property %d=%d, result=0x%0x\n\n",
+			fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n",
 				numprop, property, result1);
 			hexdump((void*)result1, property);
 			numprop++;
@@ -406,7 +406,7 @@ ulong RASetFlavor(ulong p1,ulong p2) {
 
 void  SetDLLAccessPath(ulong p1) {
 //	loadSyms();
-	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);
 	(*raSetDLLAccessPath)(p1);
 	hexdump((void*)p1, 44);

Modified: trunk/TOOLS/realcodecs/drv2.c
==============================================================================
--- trunk/TOOLS/realcodecs/drv2.c	(original)
+++ trunk/TOOLS/realcodecs/drv2.c	Mon Dec 10 15:39:19 2007
@@ -138,7 +138,7 @@ void toc() {
 		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 RV20toYUV420CustomMessage(ulong* p
 	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(p1[0]!=17) return 0;
@@ -209,7 +209,7 @@ ulong RV20toYUV420CustomMessage(ulong* p
 		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 @@ ulong RV20toYUV420CustomMessage(ulong* p
 //	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 RV20toYUV420HiveMessage(ulong *p1,
 	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 @@ ulong RV20toYUV420HiveMessage(ulong *p1,
 //	p1[0]=0;
 //	p1[1]=0x20000000;
 	
-	fprintf(stderr,"<HIVE %d %p\n",p1[0],p1[1]);
+	fprintf(stderr,"<HIVE %ld %p\n",p1[0],p1[1]);
 
 //	hexdump((void*)p1, sizeof(struct init_data));
 //	hexdump((void*)p1, 8);
-	fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0x(%d)\n\n", result, result);
+	fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result);
 	return result;
 }
 
@@ -291,8 +291,8 @@ static char i_temp[32768];
 
 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 @@ ulong RV20toYUV420Init(ulong p1,ulong p2
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 	
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 
 //	pp3=p3;
 	// TRANSFORM: <timestamp> <numblocks> <len> <crc_src> <crc_dest> <p4[4]>
-//	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 //	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);

Modified: trunk/TOOLS/realcodecs/drv3.c
==============================================================================
--- trunk/TOOLS/realcodecs/drv3.c	(original)
+++ trunk/TOOLS/realcodecs/drv3.c	Mon Dec 10 15:39:19 2007
@@ -138,7 +138,7 @@ void toc() {
 		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 RV20toYUV420CustomMessage(ulong* p
 	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 @@ ulong RV20toYUV420CustomMessage(ulong* p
 	}
 #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 @@ ulong RV20toYUV420CustomMessage(ulong* p
 //	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 RV20toYUV420HiveMessage(ulong *p1,
 	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 @@ ulong RV20toYUV420HiveMessage(ulong *p1,
 //	p1[0]=0;
 //	p1[1]=0x20000000;
 	
-	fprintf(stderr,"<HIVE %d %p\n",p1[0],p1[1]);
+	fprintf(stderr,"<HIVE %ld %p\n",p1[0],p1[1]);
 
 //	hexdump((void*)p1, sizeof(struct init_data));
 //	hexdump((void*)p1, 8);
-	fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0x(%d)\n\n", result, result);
+	fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result);
 	return result;
 }
 
@@ -266,8 +266,8 @@ static char i_temp[32768];
 
 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 @@ ulong RV20toYUV420Init(ulong p1,ulong p2
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 	
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 
 //	pp3=p3;
 	// TRANSFORM: <timestamp> <numblocks> <len> <crc_src> <crc_dest> <p4[4]>
-//	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 //	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);

Modified: trunk/TOOLS/realcodecs/drv4.c
==============================================================================
--- trunk/TOOLS/realcodecs/drv4.c	(original)
+++ trunk/TOOLS/realcodecs/drv4.c	Mon Dec 10 15:39:19 2007
@@ -110,7 +110,7 @@ void toc() {
 		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 RV20toYUV420CustomMessage(ulong* p
 	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 @@ ulong RV20toYUV420CustomMessage(ulong* p
 	}
 #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 @@ ulong RV20toYUV420CustomMessage(ulong* p
 //	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 RV20toYUV420HiveMessage(ulong *p1,
 	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 @@ ulong RV20toYUV420HiveMessage(ulong *p1,
 //	p1[0]=0;
 //	p1[1]=0x20000000;
 	
-	fprintf(stderr,"<HIVE %d %p\n",p1[0],p1[1]);
+	fprintf(stderr,"<HIVE %ld %p\n",p1[0],p1[1]);
 
 //	hexdump((void*)p1, sizeof(struct init_data));
 //	hexdump((void*)p1, 8);
-	fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0x(%d)\n\n", result, result);
+	fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result);
 	return result;
 }
 
@@ -238,8 +238,8 @@ static char i_temp[32768];
 
 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 @@ ulong RV20toYUV420Init(ulong p1,ulong p2
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 	
 	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 
 //	pp3=p3;
 	// TRANSFORM: <timestamp> <numblocks> <len> <crc_src> <crc_dest> <p4[4]>
-//	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 @@ ulong RV20toYUV420Transform(ulong p1,ulo
 //	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;
 }
 

Modified: trunk/TOOLS/realcodecs/ra.c
==============================================================================
--- trunk/TOOLS/realcodecs/ra.c	(original)
+++ trunk/TOOLS/realcodecs/ra.c	Mon Dec 10 15:39:19 2007
@@ -160,7 +160,7 @@ void toc() {
 		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 @@ void hexdump(void *pos, int len) {
 
 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 @@ ulong RADecode(ulong p1,ulong p2,ulong p
 	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 RAGetNumberOfFlavors(void) {
 	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 RAGetNumberOfFlavors2(void) {
 	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 RASetFlavor(ulong p1,ulong p2) {
 	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<numflavors) {
-		fprintf(stderr, "************ Flavor %d *************\n\n", flavor);
+		fprintf(stderr, "************ Flavor %ld *************\n\n", flavor);
 		numprop=0;
 		while (numprop<32) {
 			result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property);
-			fprintf(stderr, "property %d=%d, result=0x%0x\n\n",
+			fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n",
 				numprop, property, result1);
 			hexdump((void*)result1, property);
 			numprop++;
@@ -372,7 +372,7 @@ ulong RASetFlavor(ulong p1,ulong p2) {
 
 void  SetDLLAccessPath(ulong p1) {
 //	loadSyms();
-	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);
 	(*raSetDLLAccessPath)(p1);
 	hexdump((void*)p1, 44);

Modified: trunk/TOOLS/realcodecs/rv30.c
==============================================================================
--- trunk/TOOLS/realcodecs/rv30.c	(original)
+++ trunk/TOOLS/realcodecs/rv30.c	Mon Dec 10 15:39:19 2007
@@ -189,7 +189,7 @@ void toc() {
 		usecs+=1000000;
 		--secs;
 	}
-	fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs);
+	fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs);
 }
 
 
@@ -226,34 +226,34 @@ void hexdump(void *pos, int len) {
 
 ulong PNCodec_Open(ulong p1,ulong p2) {
 	ulong result;
-	fprintf(stderr, "PNCodec_Open(ulong fourcc=0x%0x(%d), ", p1, p1);
-	fprintf(stderr, "PNCMain **pncMain=0x%0x(%d))\n", p2, p2);
+	fprintf(stderr, "PNCodec_Open(ulong fourcc=0x%0lx(%ld), ", p1, p1);
+	fprintf(stderr, "PNCMain **pncMain=0x%0lx(%ld))\n", p2, p2);
 //	hexdump((void*)p1, 44);
 	tic();
 	result=(*pncOpen)(p1,p2);
 	toc();
 	hexdump((void*)p2, 4);
 //	hexdump(*((void**)p2), 0x1278);
-	fprintf(stderr, "PNCodec_Open --> 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 @@ ulong PNCodec_GetUIName(ulong p1,ulong p
 	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 @@ ulong PNCodec_StreamOpen(ulong p1,ulong 
 //	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 PNStream_SetDataCallback(ulong p1,
 	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 @@ ulong PNStream_SetDataCallback(ulong p1,
 //	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 streamHeaderSize=0;
 
 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);

Modified: trunk/TOOLS/realcodecs/sipr.c
==============================================================================
--- trunk/TOOLS/realcodecs/sipr.c	(original)
+++ trunk/TOOLS/realcodecs/sipr.c	Mon Dec 10 15:39:19 2007
@@ -183,7 +183,7 @@ void toc() {
 		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 @@ void hexdump(void *pos, int len) {
 
 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 RADecode(ulong p1,ulong p2,ulong p
 	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 @@ ulong RADecode(ulong p1,ulong p2,ulong p
 //	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 RAGetNumberOfFlavors(void) {
 	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 RAInitDecoder(ulong p1,ulong p2) {
 	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 @@ ulong RAInitDecoder(ulong p1,ulong p2) {
 
 //	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 RASetFlavor(ulong p1,ulong p2,ulon
 	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<numflavors) {
-		fprintf(stderr, "************ Flavor %d *************\n\n", flavor);
+		fprintf(stderr, "************ Flavor %ld *************\n\n", flavor);
 		numprop=0;
 		while (numprop<32) {
 			result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property);
-			fprintf(stderr, "property %d=%d, result=0x%0x\n\n",
+			fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n",
 				numprop, property, result1);
 			hexdump((void*)result1, property);
 			numprop++;
@@ -438,7 +438,7 @@ ulong RASetFlavor(ulong p1,ulong p2,ulon
 void  SetDLLAccessPath(ulong p1,ulong p2) {
 //	loadSyms();
 	char* ize=p1;
-	fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0x(%d) p2=%p)\n", p1, p1,p2);
+	fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0lx(%ld) p2=%p)\n", p1, p1,p2);
 	while(*ize){
 	    fprintf(stderr,"%s\n",ize);
 	    ize+=strlen(ize)+1;
@@ -453,7 +453,7 @@ static char pwdtemp[1000];
 
 void  RASetPwd(ulong p1,ulong p2) {
 //	loadSyms();
-	fprintf(stderr, "RASetPwd(ulong p1=0x%0x(%d),ulong p2=0x%0x(%d))\n", p1, p1, p2, p2);
+	fprintf(stderr, "RASetPwd(ulong p1=0x%0lx(%ld),ulong p2=0x%0lx(%ld))\n", p1, p1, p2, p2);
 //	hexdump((void*)p1, 44);
 //	hexdump((void*)p2, 44);
 	memset(pwdtemp,0x77,1000);



More information about the MPlayer-cvslog mailing list