aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xfrd
diff options
context:
space:
mode:
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>2004-09-24 16:06:44 +0000
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>2004-09-24 16:06:44 +0000
commit2669c4ec0cad1aa9207baf50f175ccb04737b668 (patch)
tree872d2a1c6477757869d04a928bd2d9c0753c86e5 /tools/xfrd
parent5b4a13b2e65d06920457e52fea9d13d5eeab4f91 (diff)
downloadxen-2669c4ec0cad1aa9207baf50f175ccb04737b668.tar.gz
xen-2669c4ec0cad1aa9207baf50f175ccb04737b668.tar.bz2
xen-2669c4ec0cad1aa9207baf50f175ccb04737b668.zip
bitkeeper revision 1.1159.1.176 (41544614Jlzg1BYGAePPjQI7EV4V7A)
Turn off most xfrd debug, and add process id to the messages.
Diffstat (limited to 'tools/xfrd')
-rw-r--r--tools/xfrd/debug.h14
-rw-r--r--tools/xfrd/xen_domain.c2
-rw-r--r--tools/xfrd/xfrd.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/tools/xfrd/debug.h b/tools/xfrd/debug.h
index 69a6b49937..1f5a19d54d 100644
--- a/tools/xfrd/debug.h
+++ b/tools/xfrd/debug.h
@@ -48,17 +48,17 @@
#ifdef DEBUG
-#define dprintf(fmt, args...) fprintf(stdout, "[DBG] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
-#define wprintf(fmt, args...) fprintf(stderr, "[WRN] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
-#define iprintf(fmt, args...) fprintf(stderr, "[INF] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
-#define eprintf(fmt, args...) fprintf(stderr, "[ERR] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
+#define dprintf(fmt, args...) fprintf(stdout, "%d [DBG] " MODULE_NAME ">%s" fmt, getpid(), __FUNCTION__, ##args)
+#define wprintf(fmt, args...) fprintf(stderr, "%d [WRN] " MODULE_NAME ">%s" fmt, getpid(),__FUNCTION__, ##args)
+#define iprintf(fmt, args...) fprintf(stderr, "%d [INF] " MODULE_NAME ">%s" fmt, getpid(),__FUNCTION__, ##args)
+#define eprintf(fmt, args...) fprintf(stderr, "%d [ERR] " MODULE_NAME ">%s" fmt, getpid(),__FUNCTION__, ##args)
#else
#define dprintf(fmt, args...) do {} while(0)
-#define wprintf(fmt, args...) fprintf(stderr, "[WRN] " MODULE_NAME fmt, ##args)
-#define iprintf(fmt, args...) fprintf(stderr, "[INF] " MODULE_NAME fmt, ##args)
-#define eprintf(fmt, args...) fprintf(stderr, "[ERR] " MODULE_NAME fmt, ##args)
+#define wprintf(fmt, args...) fprintf(stderr, "%d [WRN] " MODULE_NAME fmt, getpid(), ##args)
+#define iprintf(fmt, args...) fprintf(stderr, "%d [INF] " MODULE_NAME fmt, getpid(), ##args)
+#define eprintf(fmt, args...) fprintf(stderr, "%d [ERR] " MODULE_NAME fmt, getpid(), ##args)
#endif
diff --git a/tools/xfrd/xen_domain.c b/tools/xfrd/xen_domain.c
index fd7dd5f99e..b061a86c4c 100644
--- a/tools/xfrd/xen_domain.c
+++ b/tools/xfrd/xen_domain.c
@@ -16,7 +16,7 @@ typedef unsigned long u32;
#define MODULE_NAME "XFRD"
#define DEBUG 1
-//#undef DEBUG
+#undef DEBUG
#include "debug.h"
int domain_suspend(void *data, u32 dom){
diff --git a/tools/xfrd/xfrd.c b/tools/xfrd/xfrd.c
index 93062ca8fb..9c68afddb1 100644
--- a/tools/xfrd/xfrd.c
+++ b/tools/xfrd/xfrd.c
@@ -50,7 +50,7 @@
#define MODULE_NAME "XFRD"
#define DEBUG 1
-//#undef DEBUG
+#undef DEBUG
#include "debug.h"
/*