Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: incorrect number of dirty pages printed (#766)
The `log_dirty_bitmap` function in `dma.c` would output the wrong number of dirty pages due to the `char` of the bitmap being sign-extended when implicitly being converted to `unsigned int` for `__builtin_popcount`. By adding an intermediate cast to `uint8_t` we avoid this incorrect behaviour. See #746 (comment). Signed-off-by: William Henderson <[email protected]>
- Loading branch information