Skip to content

Commit

Permalink
cdev: printfs around px4_sem_timedwait
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Feb 13, 2019
1 parent 232a885 commit 48c1b3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/cdev/posix/cdev_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,12 @@ extern "C" {
nsecs -= (nsecs / billion) * billion;
ts.tv_nsec = nsecs;

PX4_INFO("before px4_sem_timedwait, ts: %lu.%lu", ts.tv_sec, ts.tv_nsec);

ret = px4_sem_timedwait(&sem, &ts);

PX4_INFO("after px4_sem_timedwait, ret: %d", ret);

if (ret && errno != ETIMEDOUT) {
PX4_WARN("%s: px4_poll() sem error: %s", thread_name, strerror(errno));
}
Expand Down

0 comments on commit 48c1b3d

Please sign in to comment.