summaryrefslogtreecommitdiff
path: root/test/testloadso.c
diff options
context:
space:
mode:
authorRyan C. Gordon <icculus@icculus.org>2006-11-07 15:02:12 +0000
committerRyan C. Gordon <icculus@icculus.org>2006-11-07 15:02:12 +0000
commitfb64b4e6a0e874e8fc5c996af601e954e0337b22 (patch)
tree79b4e06578d2b4163b5a2975aa8fe887ab5ba1da /test/testloadso.c
parentf99e5395bcfea6cc96ef36860bc23b7979c3f30a (diff)
Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402225
Diffstat (limited to 'test/testloadso.c')
-rw-r--r--test/testloadso.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/testloadso.c b/test/testloadso.c
index 5b94a37b..39c14c69 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 <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 @@ 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);