+Mon Oct 6 15:47:00 EST 2008 Cole Robinson <crobinso@redhat.com>
+
+ * qemud/remote.c src/hash.c src/internal.h src/lxc_conf.c
+ src/lxc_container.c src/lxc_controller.c src/lxc_driver.c
+ src/remote_internal.c src/storage_backend_disk.c src/veth.c
+ src/xen_internal.c src/xen_unified.c src/xend_internal.c:
+ Move DEBUG and DEBUG0 macros to central location.
+
Mon Oct 6 15:32:00 EST 2008 Cole Robinson <crobinso@redhat.com>
* src/qemu_conf.c: Fix possible segfault if starting a qemu guest with
#include "qemud.h"
#include "memory.h"
-#define DEBUG 0
-
#define REMOTE_DEBUG(fmt,...) qemudDebug("REMOTE: " fmt, __VA_ARGS__)
static void remoteDispatchError (struct qemud_client *client,
name = args->name ? *args->name : NULL;
-#if DEBUG
- fprintf (stderr, "remoteDispatchOpen: name = %s\n", name);
-#endif
-
/* If this connection arrived on a readonly socket, force
* the connection to be readonly.
*/
#define MAX_HASH_LEN 8
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
/* #define DEBUG_GROW */
/*
do { } while (0)
#endif /* !ENABLE_DEBUG */
+#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
+#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
+
/* C99 uses __func__. __FUNCTION__ is legacy. */
#ifndef __GNUC__
#define __FUNCTION__ __func__
#endif
static int initialized = 0;
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
#ifdef ENABLE_DEBUG
int debugFlag = 0;
#endif
#include "lxc_conf.h"
-/* debug macros */
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
/* Functions */
void lxcError(virConnectPtr conn, virDomainPtr dom, int code,
const char *fmt, ...)
#include "memory.h"
#include "veth.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
/*
* GLibc headers are behind the kernel, so we define these
* constants if they're not present already.
#include "util.h"
#include "cgroup.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
int debugFlag = 0;
struct cgroup_device_policy {
#include "cgroup.h"
-/* debug macros */
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
-
static int lxcStartup(void);
static int lxcShutdown(void);
static lxc_driver_t *lxc_driver = NULL;
#include "memory.h"
#include "util.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt,__VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
/* Per-connection private data. */
#define MAGIC 999 /* private_data->magic if OK */
#define DEAD 998 /* private_data->magic if dead/closed */
#include "util.h"
#include "memory.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
enum {
VIR_STORAGE_POOL_DISK_DOS = 0,
VIR_STORAGE_POOL_DISK_DVH,
#include "memory.h"
#include "util.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
/* Functions */
/**
* getFreeVethName:
#include "capabilities.h"
#include "memory.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt, __VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
/*
* so far there is 2 versions of the structures usable for doing
* hypervisor calls.
#include "util.h"
#include "memory.h"
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt,__VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
static int
xenUnifiedNodeGetInfo (virConnectPtr conn, virNodeInfoPtr info);
static int
/* required for cpumap_t */
#include <xen/dom0_ops.h>
-#define DEBUG(fmt,...) VIR_DEBUG(__FILE__, fmt,__VA_ARGS__)
-#define DEBUG0(msg) VIR_DEBUG(__FILE__, "%s", msg)
-
#ifndef PROXY
/*