Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 07 Nov 2006 15:02:12 +0000
changeset 2068 f16a7d02a176
parent 2067 dcdb175c2829
child 2069 8d4c2498bb72
Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes.
test/testloadso.c
--- a/test/testloadso.c	Tue Nov 07 14:36:47 2006 +0000
+++ b/test/testloadso.c	Tue Nov 07 15:02:12 2006 +0000
@@ -19,8 +19,9 @@
 	fntype fn = NULL;
 
 	if (argc != 3) {
-		fprintf(stderr, "USAGE: %s <library> <functionname>\n");
-		fprintf(stderr, "       %s --hello <library with puts()>\n");
+		const char *app = argv[0];
+		fprintf(stderr, "USAGE: %s <library> <functionname>\n", app);
+		fprintf(stderr, "       %s --hello <lib with puts()>\n", app);
 		return 1;
 	}
 
@@ -51,7 +52,7 @@
 			        symname, SDL_GetError());
 			retval = 4;
 		} else {
-			printf("Found %s in %s at %p\n", symname, libname);
+			printf("Found %s in %s at %p\n", symname, libname, fn);
 			if (hello) {
 				printf("Calling function...\n");
 				fflush(stdout);