Skip to content

Commit

Permalink
Try to make compiled happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Dec 22, 2023
1 parent 239cebf commit b861aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/src/DepLibUring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ DepLibUring::LibUring::LibUring()

if (err < 0)
{
int errno = -err;
int errno = -1 * err;

if (errno == ENOMEM)
{
this->zeroCopyEnabled = false;

MS_WARN_TAG(
info,
"io_uring_register_buffers() failed due to low memlock limit (ulimit -l), disabling zero copy",
"io_uring_register_buffers() failed due to low memlock limit (ulimit -l), disabling zero copy: %s",
std::strerror(errno));
}
else
Expand Down

0 comments on commit b861aa9

Please sign in to comment.