Skip to content
Snippets Groups Projects

[io] Transform assert() to EMPER_ASSERT_MSG() in GlobalIoContext

Merged Florian Schmaus requested to merge flow/emper:assert-submitted-expected into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -36,7 +36,9 @@ static void assert_submitted(ATTR_UNUSED unsigned submitted, ATTR_UNUSED unsigne
@@ -36,7 +36,9 @@ static void assert_submitted(ATTR_UNUSED unsigned submitted, ATTR_UNUSED unsigne
// Reporting how many sqes were submitted uses khead which
// Reporting how many sqes were submitted uses khead which
// is written asynchronously by the poller kthread
// is written asynchronously by the poller kthread
if constexpr (emper::IO_SQ_POLLER == IoSqPoller::off) {
if constexpr (emper::IO_SQ_POLLER == IoSqPoller::off) {
assert(submitted == expected);
EMPER_ASSERT_MSG(submitted == expected,
 
"Submitted io_uring SQE count "
 
<< submitted << " does not match the expected number of " << expected);
}
}
}
}
Loading