]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
include/ceph_assert: qualify __assert_warn call in assert_warn macro
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 2 Apr 2020 23:29:45 +0000 (19:29 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 6 Apr 2020 15:15:06 +0000 (11:15 -0400)
A macro never knows where it will be expanded.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/include/ceph_assert.h

index 3d63ee3c1622e2d32ded48d7006d100c52872332..c0df90ce1450ae156540580e611fd5e8c18a6c08 100644 (file)
@@ -70,7 +70,7 @@ extern void __ceph_assert_warn(const char *assertion, const char *file, int line
 #define assert_warn(expr)                                                      \
   ((expr)                                                              \
    ? _CEPH_ASSERT_VOID_CAST (0)                                        \
-   : __ceph_assert_warn (__STRING(expr), __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION))
+   : ::ceph::__ceph_assert_warn (__STRING(expr), __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION))
 
 }