blktap2: Fix E/DPRINTF defs all around the driver/ subdir.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 8 Jun 2010 07:04:09 +0000 (08:04 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 8 Jun 2010 07:04:09 +0000 (08:04 +0100)
This is just to avoid macro madness among subdirs sharing blktaplib.h.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
Signed-off-by: Jake Wires <jake.wires@citrix.com>
tools/blktap2/drivers/block-remus.c
tools/blktap2/drivers/img2qcow.c
tools/blktap2/drivers/qcow2raw.c
tools/blktap2/drivers/tapdisk.h
tools/blktap2/include/blktaplib.h

index 0af8189ae77d68b0841be8f0e0ea145734d56444..bb5a8d17ad6b29cc7e2cb4ff473eb02d262b3fc6 100644 (file)
@@ -33,7 +33,6 @@
 
 /* due to architectural choices in tapdisk, block-buffer is forced to
  * reimplement some code which is meant to be private */
-#define TAPDISK
 #include "tapdisk.h"
 #include "tapdisk-server.h"
 #include "tapdisk-driver.h"
index 17a89296f991ca01cddf7ac716c26f0a9d5aaf37..57b931e5516290c903562fa046abd3c488a2c9f5 100644 (file)
@@ -64,8 +64,6 @@
 #define O_LARGEFILE    0
 #endif
 
-
-#define TAPDISK 1
 #define BLOCK_PROCESSSZ 4096
 #define QCOW_VBD 0
 #define PROGRESS_QUANT 2
index 04cb26eae4ebe26db57d9cf3d1d2b0651e6aa228..a2e417dae15c6500374021c9380913c039c16108 100644 (file)
@@ -62,7 +62,6 @@
 #define O_LARGEFILE 0
 #endif
 
-#define TAPDISK 1
 #define BLOCK_PROCESSSZ 4096
 #define QCOW_VBD 0
 #define AIO_VBD 1
index 6625de0001e17edfafb314b9cb0123dbdda161a7..f945fbfe648dbd0134818b766321fdc16455e9d1 100644 (file)
 #include "tapdisk-log.h"
 #include "tapdisk-utils.h"
 
+#define DPRINTF(_f, _a...)           syslog(LOG_INFO, _f, ##_a)
+#define EPRINTF(_f, _a...)           syslog(LOG_ERR, "tap-err:%s: " _f, __func__, ##_a)
+#define PERROR(_f, _a...)            EPRINTF(_f ": %s", ##_a, strerror(errno))
+
 #define MAX_SEGMENTS_PER_REQ         11
 #define SECTOR_SHIFT                 9
 #define DEFAULT_SECTOR_SIZE          512
index d91a29b25f0929bab15af7bfd6c1fbd609c351d6..afd1037352628bcda844a80c814c1a63a938e586 100644 (file)
 #include <xenctrl.h>
 #include <xen/io/blkif.h>
 
-#if 1
-#define DPRINTF(_f, _a...) syslog(LOG_INFO, _f, ##_a)
-#else
-#define DPRINTF(_f, _a...) ((void)0)
-#endif
-
-#define EPRINTF(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f, __func__, ##_a)
-#define PERROR(_f, _a...)  EPRINTF(_f ": %s", ##_a, strerror(errno))
-
 #define BLK_RING_SIZE __CONST_RING_SIZE(blkif, XC_PAGE_SIZE)
 
 /* size of the extra VMA area to map in attached pages. */