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 2068f16a7d02a176
parent 2067 dcdb175c2829
child 2069 8d4c2498bb72
Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes.
test/testloadso.c
     1.1 --- a/test/testloadso.c	Tue Nov 07 14:36:47 2006 +0000
     1.2 +++ b/test/testloadso.c	Tue Nov 07 15:02:12 2006 +0000
     1.3 @@ -19,8 +19,9 @@
     1.4  	fntype fn = NULL;
     1.5  
     1.6  	if (argc != 3) {
     1.7 -		fprintf(stderr, "USAGE: %s <library> <functionname>\n");
     1.8 -		fprintf(stderr, "       %s --hello <library with puts()>\n");
     1.9 +		const char *app = argv[0];
    1.10 +		fprintf(stderr, "USAGE: %s <library> <functionname>\n", app);
    1.11 +		fprintf(stderr, "       %s --hello <lib with puts()>\n", app);
    1.12  		return 1;
    1.13  	}
    1.14  
    1.15 @@ -51,7 +52,7 @@
    1.16  			        symname, SDL_GetError());
    1.17  			retval = 4;
    1.18  		} else {
    1.19 -			printf("Found %s in %s at %p\n", symname, libname);
    1.20 +			printf("Found %s in %s at %p\n", symname, libname, fn);
    1.21  			if (hello) {
    1.22  				printf("Calling function...\n");
    1.23  				fflush(stdout);