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