]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-ggate: tag "level" with need_dynamic 22557/head
authorKefu Chai <kchai@redhat.com>
Thu, 14 Jun 2018 02:39:51 +0000 (10:39 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 14 Jun 2018 02:41:20 +0000 (10:41 +0800)
otherwise compiler will fail to figure out the right should_gather()
variant to use.
see also 1a3e9357

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/rbd_ggate/debug.cc

index 8cf912c3ece8cfbb62dac375bf14c6ca7b72fd4c..b675ba5b3cae8ebbad537fb3b0ca95d756e000ef 100644 (file)
@@ -17,7 +17,7 @@ extern "C" void debugv(int level, const char *fmt, va_list ap) {
 
     vasprintf(&msg, fmt, ap);
 
-    dout(level) << msg << dendl;
+    dout(ceph::dout::need_dynamic(level)) << msg << dendl;
 
     free(msg);
     errno = saved_errno;