diff options
Diffstat (limited to 'tools/libxc/xc_io.c')
-rw-r--r-- | tools/libxc/xc_io.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/libxc/xc_io.c b/tools/libxc/xc_io.c new file mode 100644 index 0000000000..b7ce6342ab --- /dev/null +++ b/tools/libxc/xc_io.c @@ -0,0 +1,31 @@ +#include "xc_io.h" + +void xcio_error(XcIOContext *ctxt, const char *msg, ...){ + va_list args; + + va_start(args, msg); + vfprintf(stdout, msg, args); fprintf(stdout, "\n"); + IOStream_vprint(ctxt->info, msg, args); + IOStream_print(ctxt->info, "\n"); + va_end(args); +} + +void xcio_info(XcIOContext *ctxt, const char *msg, ...){ + va_list args; + + if(0 && !(ctxt->flags & XCFLAGS_VERBOSE)) return; + va_start(args, msg); + vfprintf(stdout, msg, args); fprintf(stdout, "\n"); + IOStream_vprint(ctxt->info, msg, args); + va_end(args); +} + +void xcio_debug(XcIOContext *ctxt, const char *msg, ...){ + va_list args; + + if(0 && !(ctxt->flags & XCFLAGS_DEBUG)) return; + va_start(args, msg); + vfprintf(stdout, msg, args); fprintf(stdout, "\n"); + IOStream_vprint(ctxt->info, msg, args); + va_end(args); +} |