mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
32 lines
795 B
C
32 lines
795 B
C
#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);
|
|
}
|