Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Nov 18, 2024
1 parent e1cf8e5 commit 9fe37ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,10 @@ namespace librealsense
if(xioctl(_fd, UVCIOC_CTRL_QUERY, &q) < 0)
{
if (errno == EIO || errno == EAGAIN || errno == EBUSY)
{
LOG_DEBUG( rsutils::string::from() << "set_xu received recoverable error: " << errno << " opcode: " << data[0] << " " << data[3] );
return false;
}

throw linux_backend_exception("set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed");
}
Expand All @@ -1858,7 +1861,10 @@ namespace librealsense
if(xioctl(_fd, UVCIOC_CTRL_QUERY, &q) < 0)
{
if (errno == EIO || errno == EAGAIN || errno == EBUSY)
{
LOG_DEBUG( rsutils::string::from() << "get_xu received recoverable error: " << errno << " opcode: " << data[0] << " " << data[3] );
return false;
}

throw linux_backend_exception("get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed");
}
Expand Down

0 comments on commit 9fe37ab

Please sign in to comment.