mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
zenoh: Fix status keyexpr printf
This commit is contained in:
committed by
Beat Küng
parent
231128c68e
commit
f99759db87
@@ -100,5 +100,5 @@ void Zenoh_Publisher::print()
|
||||
{
|
||||
z_view_string_t keystr;
|
||||
z_keyexpr_as_view_string(z_publisher_keyexpr(z_loan(_pub)), &keystr);
|
||||
printf("Topic: %s\n", z_string_data(z_loan(keystr)));
|
||||
printf("Topic: %.*s\n", (int)z_string_len(z_loan(keystr)), z_string_data(z_loan(keystr)));
|
||||
}
|
||||
|
||||
@@ -96,5 +96,6 @@ void Zenoh_Subscriber::print(const char *type_string, const char *topic_string)
|
||||
{
|
||||
z_view_string_t keystr;
|
||||
z_keyexpr_as_view_string(z_subscriber_keyexpr(z_loan(_sub)), &keystr);
|
||||
printf("Topic: %s -> %s %s \n", z_string_data(z_loan(keystr)), type_string, topic_string);
|
||||
printf("Topic: %.*s -> %s %s \n", (int)z_string_len(z_loan(keystr)), z_string_data(z_loan(keystr)), type_string,
|
||||
topic_string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user