Man, who let this moron near printf()?! :) SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Tue, 07 Nov 2006 15:00:43 +0000
branchSDL-1.2
changeset 3893 f1699aecb65d
parent 3892 b25dd008167b
child 3894 5a20cffc7027
Man, who let this moron near printf()?! :)
test/testloadso.c
--- a/test/testloadso.c	Tue Nov 07 14:31:25 2006 +0000
+++ b/test/testloadso.c	Tue Nov 07 15:00:43 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);