X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i.h;h=3759335c8122945819eb6d56029c8f32819aee40;hp=b2c616226e6afc323a1db765aaac56dd262665b5;hb=900eef7317d3e8b350a93fb8782639845c62c2bd;hpb=25a74feac6681e831f748723353a46ce48155dda diff --git a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h index b2c61622..3759335c 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h @@ -984,12 +984,12 @@ bt_component_class_query_method_status component_class_query( status = py_exc_to_status_component_class_clear(self_component_class, log_level); if (status < 0) { - static const char *fmt = - "Failed to call Python class's _bt_query_from_native() method: py-cls-addr=%p"; +#define BT_FMT "Failed to call Python class's _bt_query_from_native() method: py-cls-addr=%p" BT_LOG_WRITE_CUR_LVL(BT_LOG_WARNING, log_level, BT_LOG_TAG, - fmt, py_cls); + BT_FMT, py_cls); BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_COMPONENT_CLASS( - self_component_class, fmt, py_cls); + self_component_class, BT_FMT, py_cls); +#undef BT_FMT } goto end; }