Skip to content

Commit

Permalink
uORBManager: print errno for advertisement failures
Browse files Browse the repository at this point in the history
Helps with debugging.
  • Loading branch information
bkueng committed Oct 16, 2019
1 parent 45a5372 commit 173337e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/uORB/uORBManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ orb_advert_t uORB::Manager::orb_advertise_multi(const struct orb_metadata *meta,
int fd = node_open(meta, true, instance, priority);

if (fd == PX4_ERROR) {
PX4_ERR("%s advertise failed", meta->o_name);
PX4_ERR("%s advertise failed (%i)", meta->o_name, errno);
return nullptr;
}

Expand Down

0 comments on commit 173337e

Please sign in to comment.