Skip to content

Commit

Permalink
Use TRACETOOLS_ prefix for tracepoint-related macros (#450)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
  • Loading branch information
christophebedard committed Jun 8, 2023
1 parent ee3485a commit c6db75e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Expand Up @@ -2013,7 +2013,7 @@ extern "C" rmw_ret_t rmw_publish(
return RMW_RET_INVALID_ARGUMENT);
auto pub = static_cast<CddsPublisher *>(publisher->data);
assert(pub);
TRACEPOINT(rmw_publish, ros_message);
TRACETOOLS_TRACEPOINT(rmw_publish, ros_message);
if (dds_write(pub->enth, ros_message) >= 0) {
return RMW_RET_OK;
} else {
Expand Down Expand Up @@ -2671,7 +2671,7 @@ extern "C" rmw_publisher_t * rmw_create_publisher(
}

cleanup_publisher.cancel();
TRACEPOINT(rmw_publisher_init, static_cast<const void *>(pub), cddspub->gid.data);
TRACETOOLS_TRACEPOINT(rmw_publisher_init, static_cast<const void *>(pub), cddspub->gid.data);
return pub;
}

Expand Down Expand Up @@ -3213,7 +3213,7 @@ extern "C" rmw_subscription_t * rmw_create_subscription(
}

cleanup_subscription.cancel();
TRACEPOINT(rmw_subscription_init, static_cast<const void *>(sub), cddssub->gid.data);
TRACETOOLS_TRACEPOINT(rmw_subscription_init, static_cast<const void *>(sub), cddssub->gid.data);
return sub;
}

Expand Down Expand Up @@ -3406,7 +3406,7 @@ static rmw_ret_t rmw_take_int(
}
*taken = false;
take_done:
TRACEPOINT(
TRACETOOLS_TRACEPOINT(
rmw_take,
static_cast<const void *>(subscription),
static_cast<const void *>(ros_message),
Expand Down

0 comments on commit c6db75e

Please sign in to comment.