diff --git a/tests/plugins.c b/tests/plugins.c index d3dc5cd..2258b18 100644 --- a/tests/plugins.c +++ b/tests/plugins.c @@ -22,6 +22,10 @@ #include #include "Browser/plugin.h" +#ifndef PROGNAME +# define PROGNAME "plugins" +#endif + /* private */ /* prototypes */ @@ -90,7 +94,7 @@ static int _plugins(void) /* dlerror */ static int _dlerror(char const * message, int ret) { - fputs("plugins: ", stderr); + fputs(PROGNAME ": ", stderr); fprintf(stderr, "%s: %s\n", message, dlerror()); return ret; } @@ -99,7 +103,7 @@ static int _dlerror(char const * message, int ret) /* error */ static int _error(char const * message, char const * error, int ret) { - fputs("plugins: ", stderr); + fputs(PROGNAME ": ", stderr); fprintf(stderr, "%s: %s\n", message, error); return ret; } @@ -108,7 +112,7 @@ static int _error(char const * message, char const * error, int ret) /* perror */ static int _perror(char const * message, int ret) { - fputs("plugins: ", stderr); + fputs(PROGNAME ": ", stderr); perror(message); return ret; } diff --git a/tests/vfs.c b/tests/vfs.c index 06e4686..5182283 100644 --- a/tests/vfs.c +++ b/tests/vfs.c @@ -23,6 +23,10 @@ #include #include "Browser/vfs.h" +#ifndef PROGNAME +# define PROGNAME "vfs" +#endif + /* vfs */ static int _vfs(void) @@ -51,7 +55,7 @@ static int _vfs(void) /* usage */ static int _usage(void) { - fputs("Usage: vfs\n", stderr); + fputs("Usage: " PROGNAME "\n", stderr); return 1; }