Re: [PATCH 3/5] rust: add pr_*_ratelimit! macros for printing

From: Carlos Llamas

Date: Fri Jun 26 2026 - 19:12:53 EST


On Tue, Jun 23, 2026 at 03:38:06PM +0000, Alice Ryhl wrote:
> Printing can be very expensive if it occurs often, so printing that can
> be triggered by userspace should be rate limited. For this purpose, add
> a Rust wrapper around `struct ratelimit_state` and use it in the new
> macros.
>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---

FWIW, this looks good to me too

Reviewed-by: Carlos Llamas <cmllamas@xxxxxxxxxx>