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