changeset 3893:f1699aecb65d SDL-1.2

Man, who let this moron near printf()?! :)
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 07 Nov 2006 15:00:43 +0000
parents b25dd008167b
children 5a20cffc7027
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: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);