From 9065f4edaed6c99d3b7453f2a72febd3097c08f9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 14 Jun 2018 10:39:51 +0800 Subject: [PATCH] rbd-ggate: tag "level" with need_dynamic otherwise compiler will fail to figure out the right should_gather() variant to use. see also 1a3e9357 Signed-off-by: Kefu Chai --- src/tools/rbd_ggate/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rbd_ggate/debug.cc b/src/tools/rbd_ggate/debug.cc index 8cf912c3ece..b675ba5b3ca 100644 --- a/src/tools/rbd_ggate/debug.cc +++ b/src/tools/rbd_ggate/debug.cc @@ -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; -- 2.39.5