ia64/xen-unstable

view tools/libxc/xc_io.c @ 1820:3d4f8eb89670

bitkeeper revision 1.1106.1.2 (40faa780dekT3E5arFwcbQDu1MbX6g)

Cleaned up Xen's instruction emulator.
author kaf24@scramble.cl.cam.ac.uk
date Sun Jul 18 16:38:24 2004 +0000 (2004-07-18)
parents 236a9f2698a3
children 51b2d77c6d1f dae98734f12e
line source
1 #include "xc_io.h"
3 void xcio_error(XcIOContext *ctxt, const char *msg, ...){
4 va_list args;
6 va_start(args, msg);
7 vfprintf(stdout, msg, args); fprintf(stdout, "\n");
8 IOStream_vprint(ctxt->info, msg, args);
9 IOStream_print(ctxt->info, "\n");
10 va_end(args);
11 }
13 void xcio_info(XcIOContext *ctxt, const char *msg, ...){
14 va_list args;
16 if(0 && !(ctxt->flags & XCFLAGS_VERBOSE)) return;
17 va_start(args, msg);
18 vfprintf(stdout, msg, args); fprintf(stdout, "\n");
19 IOStream_vprint(ctxt->info, msg, args);
20 va_end(args);
21 }
23 void xcio_debug(XcIOContext *ctxt, const char *msg, ...){
24 va_list args;
26 if(0 && !(ctxt->flags & XCFLAGS_DEBUG)) return;
27 va_start(args, msg);
28 vfprintf(stdout, msg, args); fprintf(stdout, "\n");
29 IOStream_vprint(ctxt->info, msg, args);
30 va_end(args);
31 }