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/xg_save_restore.h | |
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/xg_save_restore.h')
-rw-r--r-- | tools/libxc/xg_save_restore.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/libxc/xg_save_restore.h b/tools/libxc/xg_save_restore.h index e3fd1f2821..0000eb7843 100644 --- a/tools/libxc/xg_save_restore.h +++ b/tools/libxc/xg_save_restore.h @@ -6,28 +6,6 @@ #include "xc_private.h" -#define DEBUG 1 -#define PROGRESS 0 - -#define ERR(_f, _a...) do { \ - fprintf(stderr, _f ": %d\n" , ## _a, errno);\ - fflush(stderr); } \ -while (0) - -#if DEBUG -#define DPRINTF(_f, _a...) fprintf(stderr, _f , ## _a) -#else -#define DPRINTF(_f, _a...) ((void)0) -#endif - - -#if PROGRESS -#define PPRINTF(_f, _a...) fprintf(stderr, _f , ## _a) -#else -#define PPRINTF(_f, _a...) -#endif - - /* ** We process save/restore/migrate in batches of pages; the below ** determines how many pages we (at maximum) deal with in each batch. |