# HG changeset patch # User Ryan C. Gordon # Date 1162911732 0 # Node ID f16a7d02a17690e1f2f2ab53e1e9b3235ea2a7e1 # Parent dcdb175c282993536be6eaccb1d67fc859e61b34 Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes. diff -r dcdb175c2829 -r f16a7d02a176 test/testloadso.c --- 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 \n"); - fprintf(stderr, " %s --hello \n"); + const char *app = argv[0]; + fprintf(stderr, "USAGE: %s \n", app); + fprintf(stderr, " %s --hello \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);