X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fioncore.c;h=33eb3e37d229e8856cc51b7989ffa1230abc950a;hb=29aae1975d46f66b97a2b873f1875eded8c6fbc3;hp=cef62df1201338c91f17897c88903e1ea451cab6;hpb=df57861c962a50bfbf57f276d288395fe0c6a4b6;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); } - /*}}}*/