]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ebofs: redefine derr(x) macro in bdev
authorSage Weil <sage@newdream.net>
Tue, 13 May 2008 15:24:22 +0000 (08:24 -0700)
committerSage Weil <sage@newdream.net>
Tue, 13 May 2008 15:24:22 +0000 (08:24 -0700)
src/ebofs/BlockDevice.cc

index 183b857999073170677e9d34a6a343b8662c273d..7061f6deb2e281b8068b3b704a575ed363780b92 100644 (file)
@@ -211,6 +211,8 @@ int BlockDevice::ElevatorQueue::dequeue_io(list<biovec*>& biols,
  */
 #undef dout
 #define dout(x) if (x <= g_conf.debug_bdev) *_dout << dbeginl << g_clock.now() << " bdev(" << dev << ").barrierq."
+#undef derr
+#define derr(x) if (x <= g_conf.debug_bdev) *_derr << dbeginl << g_clock.now() << " bdev(" << dev << ").barrierq."
 
 void BlockDevice::BarrierQueue::barrier()
 {
@@ -260,6 +262,8 @@ int BlockDevice::BarrierQueue::dequeue_io(list<biovec*>& biols,
 
 #undef dout
 #define dout(x) if (x <= g_conf.debug_bdev) *_dout << dbeginl << g_clock.now() << " bdev(" << dev << ")."
+#undef derr
+#define derr(x) if (x <= g_conf.debug_bdev) *_derr << dbeginl << g_clock.now() << " bdev(" << dev << ")."