Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged r2901:2902 from SDL-1.2 branch to trunk: printf stupidity fixes.
  • Loading branch information
icculus committed Nov 7, 2006
1 parent d60b63c commit 2a2c8f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/testloadso.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2a2c8f3

Please sign in to comment.