X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fioncore.c;h=33eb3e37d229e8856cc51b7989ffa1230abc950a;hb=refs%2Ftags%2F20081002;hp=cef62df1201338c91f17897c88903e1ea451cab6;hpb=1a1da7f91ce0772210023d766e616aa0362c8d8d;p=ion3.git diff --git a/ioncore/ioncore.c b/ioncore/ioncore.c index cef62df..33eb3e3 100644 --- a/ioncore/ioncore.c +++ b/ioncore/ioncore.c @@ -22,6 +22,7 @@ #ifndef CF_NO_GETTEXT #include #endif +#include #include #include @@ -99,12 +100,17 @@ WHook *ioncore_deinit_hook=NULL; /*{{{ warn_nolog */ -void ioncore_warn_nolog(const char *str) +void ioncore_warn_nolog(const char *str, ...) { - fprintf(stderr, "%s: %s\n", libtu_progname(), str); + va_list args; + + va_start(args, str); + fprintf(stderr, "%s: ", libtu_progname()); + vfprintf(stderr, str, args); + fprintf(stderr, "\n"); + va_end(args); } - /*}}}*/