check.c

Eric Anholt anholt at kemper.freedesktop.org
Mon Oct 15 13:44:39 PDT 2007


Update of /cvs/xtest/xtest/xts5/src/libXtTest
In directory kemper:/tmp/cvs-serv28812/xts5/src/libXtTest

Modified Files:
	check.c 
Log Message:
Bug #8081: Fix bad prototypes that broke xtest on I32LP64.

While here, fix some printf formatting.

Submitted by:	Gordon Jin <gordon.jin at intel.com>


Index: check.c
===================================================================
RCS file: /cvs/xtest/xtest/xts5/src/libXtTest/check.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- check.c	3 Nov 2005 08:42:02 -0000	1.2
+++ check.c	15 Oct 2007 20:44:37 -0000	1.3
@@ -35,6 +35,13 @@
 *
 * Modifications:
 * $Log$
+* Revision 1.3  2007-10-15 20:44:37  anholt
+* Bug #8081: Fix bad prototypes that broke xtest on I32LP64.
+*
+* While here, fix some printf formatting.
+*
+* Submitted by:	Gordon Jin <gordon.jin at intel.com>
+*
 * Revision 1.2  2005-11-03 08:42:02  jmichael
 * clean up all vsw5 paths to use xts5 instead.
 *
@@ -74,7 +81,7 @@
 char *item_name;
 {
 	if (goesin != shouldbe) {
-		sprintf(ebuf, "ERROR: Expected %s of %d, Received %d", item_name, goesin, shouldbe);
+		sprintf(ebuf, "ERROR: Expected %s of %ld, Received %ld", item_name, goesin, shouldbe);
 		tet_infoline(ebuf);
 		tet_result(TET_FAIL);
 		return 1;
@@ -88,7 +95,7 @@
 char *item_name;
 {
 	if (goesin == shouldnotbe) {
-		sprintf(ebuf, "ERROR: Expected %s not = %d, received %d", item_name, goesin, shouldnotbe);
+		sprintf(ebuf, "ERROR: Expected %s not = %ld, received %ld", item_name, goesin, shouldnotbe);
 		tet_infoline(ebuf);
 		tet_result(TET_FAIL);
 		return 1;



More information about the xorg-test-commit mailing list