Skip to content

Conversation

@charliechiou
Copy link
Contributor

In the original code, when the fast buffer overflows, the return value from fast_buf_put() was silently ignored. This makes it difficult to detect whether any data was lost due to the buffer being full.

To improve the observability, we capture the return value in a local variable and issue a warning when an overflow occurs.

In the original code, when the fast buffer overflows, the return value
from fast_buf_put() was silently ignored. This makes it difficult to
detect whether any data was lost due to the buffer being full.

To improve the observability, we capture the return value in a local
variable and issue a warning when an overflow occurs.

Co-authored-by: EricccTaiwan <yphbchou0911@gmail.com>
@jserv jserv merged commit ca28bbc into sysprog21:main Mar 29, 2025
@jserv
Copy link
Contributor

jserv commented Mar 29, 2025

Thank @charliechiou for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants