ia64/xen-unstable

changeset 2546:1bd15a9e5016

bitkeeper revision 1.1159.1.176 (41544614Jlzg1BYGAePPjQI7EV4V7A)

Turn off most xfrd debug, and add process id to the messages.
author mjw@wray-m-3.hpl.hp.com
date Fri Sep 24 16:06:44 2004 +0000 (2004-09-24)
parents de88814afd44
children e3496a6ed8a8 a05a0524e3c5
files tools/xfrd/debug.h tools/xfrd/xen_domain.c tools/xfrd/xfrd.c
line diff
     1.1 --- a/tools/xfrd/debug.h	Fri Sep 24 16:05:34 2004 +0000
     1.2 +++ b/tools/xfrd/debug.h	Fri Sep 24 16:06:44 2004 +0000
     1.3 @@ -48,17 +48,17 @@
     1.4  
     1.5  #ifdef DEBUG
     1.6  
     1.7 -#define dprintf(fmt, args...) fprintf(stdout, "[DBG] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
     1.8 -#define wprintf(fmt, args...) fprintf(stderr, "[WRN] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
     1.9 -#define iprintf(fmt, args...) fprintf(stderr, "[INF] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
    1.10 -#define eprintf(fmt, args...) fprintf(stderr, "[ERR] " MODULE_NAME ">%s" fmt, __FUNCTION__, ##args)
    1.11 +#define dprintf(fmt, args...) fprintf(stdout, "%d [DBG] " MODULE_NAME ">%s" fmt, getpid(), __FUNCTION__, ##args)
    1.12 +#define wprintf(fmt, args...) fprintf(stderr, "%d [WRN] " MODULE_NAME ">%s" fmt, getpid(),__FUNCTION__, ##args)
    1.13 +#define iprintf(fmt, args...) fprintf(stderr, "%d [INF] " MODULE_NAME ">%s" fmt, getpid(),__FUNCTION__, ##args)
    1.14 +#define eprintf(fmt, args...) fprintf(stderr, "%d [ERR] " MODULE_NAME ">%s" fmt, getpid(),__FUNCTION__, ##args)
    1.15  
    1.16  #else
    1.17  
    1.18  #define dprintf(fmt, args...) do {} while(0)
    1.19 -#define wprintf(fmt, args...) fprintf(stderr, "[WRN] " MODULE_NAME fmt, ##args)
    1.20 -#define iprintf(fmt, args...) fprintf(stderr, "[INF] " MODULE_NAME fmt, ##args)
    1.21 -#define eprintf(fmt, args...) fprintf(stderr, "[ERR] " MODULE_NAME fmt, ##args)
    1.22 +#define wprintf(fmt, args...) fprintf(stderr, "%d [WRN] " MODULE_NAME fmt, getpid(), ##args)
    1.23 +#define iprintf(fmt, args...) fprintf(stderr, "%d [INF] " MODULE_NAME fmt, getpid(), ##args)
    1.24 +#define eprintf(fmt, args...) fprintf(stderr, "%d [ERR] " MODULE_NAME fmt, getpid(), ##args)
    1.25  
    1.26  #endif
    1.27  
     2.1 --- a/tools/xfrd/xen_domain.c	Fri Sep 24 16:05:34 2004 +0000
     2.2 +++ b/tools/xfrd/xen_domain.c	Fri Sep 24 16:06:44 2004 +0000
     2.3 @@ -16,7 +16,7 @@ typedef unsigned long u32;
     2.4  
     2.5  #define MODULE_NAME "XFRD"
     2.6  #define DEBUG 1
     2.7 -//#undef DEBUG
     2.8 +#undef DEBUG
     2.9  #include "debug.h"
    2.10  
    2.11  int domain_suspend(void *data, u32 dom){
     3.1 --- a/tools/xfrd/xfrd.c	Fri Sep 24 16:05:34 2004 +0000
     3.2 +++ b/tools/xfrd/xfrd.c	Fri Sep 24 16:06:44 2004 +0000
     3.3 @@ -50,7 +50,7 @@
     3.4  
     3.5  #define MODULE_NAME "XFRD"
     3.6  #define DEBUG 1
     3.7 -//#undef DEBUG
     3.8 +#undef DEBUG
     3.9  #include "debug.h"
    3.10  
    3.11  /*