Commit 5d04eda
Improve warning message for fast buffer overflow
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>1 parent 3b85299 commit 5d04eda
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
0 commit comments