uorb failure print topic name

This commit is contained in:
Daniel Agar 2017-07-08 15:42:10 -04:00 committed by Lorenz Meier
parent f45b9048aa
commit 61fd6f4c8a
2 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ int Logger::add_topic(const orb_metadata *topic)
fd = orb_subscribe(topic);
if (fd < 0) {
PX4_WARN("logger: orb_subscribe failed (%i)", errno);
PX4_WARN("logger: %s subscribe failed (%i)", topic->o_name, errno);
return -1;
}

View File

@ -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);
if (fd == ERROR) {
PX4_WARN("node_open as advertiser failed.");
PX4_ERR("%s advertise failed", meta->o_name);
return nullptr;
}