Re: [PATCH v3 3/8] ref_tracker: have callers pass output function to pr_ostream()

From: Andrew Lunn
Date: Thu Apr 17 2025 - 15:26:57 EST


On Thu, Apr 17, 2025 at 09:11:06AM -0400, Jeff Layton wrote:
> In a later patch, we'll be adding a 3rd mechanism for outputting
> ref_tracker info via seq_file. Instead of a conditional, have the caller
> set a pointer to an output function in struct ostream. As part of this,
> the log prefix must be explicitly passed in, as it's too late for the
> pr_fmt macro.
>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew