changeset 2068:f16a7d02a176

Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 07 Nov 2006 15:02:12 +0000
parents dcdb175c2829
children 8d4c2498bb72
files test/testloadso.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);