From c3143b8b9ce2c45c4c1bcbc7e17b211250cd4ad1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 7 Nov 2006 15:00:43 +0000 Subject: [PATCH] Man, who let this moron near printf()?! :) --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402224 --- test/testloadso.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/testloadso.c b/test/testloadso.c index 5b94a37b6..39c14c69f 100644 --- a/test/testloadso.c +++ b/test/testloadso.c @@ -19,8 +19,9 @@ int main(int argc, char *argv[]) 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 @@ int main(int argc, char *argv[]) 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);