summaryrefslogtreecommitdiff
path: root/src/internal.h
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2008-11-06 16:36:07 +0000
committerDaniel Veillard <veillard@redhat.com>2008-11-06 16:36:07 +0000
commitdf93e1ee2420c271e28b3301f0638a34e1151744 (patch)
tree4795be23eb57bd05adf1e97219ee5dcd95369932 /src/internal.h
parent3796e5802ff14fbfedf6b9bc92879752e1ec60c2 (diff)
downloadlibvirt-df93e1ee2420c271e28b3301f0638a34e1151744.tar.gz
add new logging module, and move existing definitions there
* src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c src/Makefile.am src/cgroup.c src/datatypes.c src/domain_event.c src/internal.h src/libvirt.c src/lxc_container.c src/lxc_controller.c src/lxc_driver.c src/proxy_internal.c src/qemu_driver.c src/remote_internal.c src/storage_backend_disk.c src/util.c src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c: add new logging module, and move existing definitions there Daniel
Diffstat (limited to 'src/internal.h')
-rw-r--r--src/internal.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/internal.h b/src/internal.h
index 926594f48c..f0c3d7dd13 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -71,21 +71,6 @@
#define NUL_TERMINATE(buf) do { (buf)[sizeof(buf)-1] = '\0'; } while (0)
#define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
-/* If configured with --enable-debug=yes then library calls
- * are printed to stderr for debugging.
- */
-#ifdef ENABLE_DEBUG
-extern int debugFlag;
-#define VIR_DEBUG(category, fmt,...) \
- do { if (debugFlag) fprintf (stderr, "DEBUG: %s: %s (" fmt ")\n", category, __func__, __VA_ARGS__); } while (0)
-#else
-#define VIR_DEBUG(category, fmt,...) \
- 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__