From 3b90ed61222e3dd038d68a59d092d79771904a3f Mon Sep 17 00:00:00 2001 From: Tim Pambor Date: Tue, 17 Jun 2025 19:05:41 +0200 Subject: [PATCH] lib: os: Fix function signature of str_out Update the str_out function signature to match the expected cbprintf_cb_local type: typedef int (*cbprintf_cb_local)(int c, void *ctx); Signed-off-by: Tim Pambor --- lib/os/printk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/os/printk.c b/lib/os/printk.c index c7c276503e2..29d62b7749d 100644 --- a/lib/os/printk.c +++ b/lib/os/printk.c @@ -210,8 +210,9 @@ struct str_context { int count; }; -static int str_out(int c, struct str_context *ctx) +static int str_out(int c, void *context) { + struct str_context *ctx = context; if ((ctx->str == NULL) || (ctx->count >= ctx->max)) { ++ctx->count; return c;