mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 01:33:33 +08:00
uorb failure print topic name
This commit is contained in:
committed by
Lorenz Meier
parent
f45b9048aa
commit
61fd6f4c8a
@@ -473,7 +473,7 @@ int Logger::add_topic(const orb_metadata *topic)
|
|||||||
fd = orb_subscribe(topic);
|
fd = orb_subscribe(topic);
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
PX4_WARN("logger: orb_subscribe failed (%i)", errno);
|
PX4_WARN("logger: %s subscribe failed (%i)", topic->o_name, errno);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ orb_advert_t uORB::Manager::orb_advertise_multi(const struct orb_metadata *meta,
|
|||||||
fd = node_open(PUBSUB, meta, data, true, instance, priority);
|
fd = node_open(PUBSUB, meta, data, true, instance, priority);
|
||||||
|
|
||||||
if (fd == ERROR) {
|
if (fd == ERROR) {
|
||||||
PX4_WARN("node_open as advertiser failed.");
|
PX4_ERR("%s advertise failed", meta->o_name);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user