diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-07 14:07:36 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-07 14:07:36 +0100 |
commit | 2928514138945c3ed7e5d34ca726d2904476852c (patch) | |
tree | f7485ca1a67cd730f61783b40872761ff5386aa6 /tools/libxc/xc_core.c | |
parent | e56ed2dc521d9eccbcfb4db7de22ab621705864f (diff) | |
download | xen-2928514138945c3ed7e5d34ca726d2904476852c.tar.gz xen-2928514138945c3ed7e5d34ca726d2904476852c.tar.bz2 xen-2928514138945c3ed7e5d34ca726d2904476852c.zip |
[LIBXC] Convert all printf/fprintf uses to use a macro instead.
Thus all can be disabled at compile time. It would be easy to
make enabling/disabling a run-time option too.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r-- | tools/libxc/xc_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index ca2ad0bfb5..efaf397abf 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -83,12 +83,12 @@ xc_domain_dumpcore_via_callback(int xc_handle, if ( (page_array = malloc(nr_pages * sizeof(xen_pfn_t))) == NULL ) { - printf("Could not allocate memory\n"); + IPRINTF("Could not allocate memory\n"); goto error_out; } if ( xc_get_pfn_list(xc_handle, domid, page_array, nr_pages) != nr_pages ) { - printf("Could not get the page frame list\n"); + IPRINTF("Could not get the page frame list\n"); goto error_out; } sts = dump_rtn(args, (char *)page_array, nr_pages * sizeof(xen_pfn_t)); |