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 <tim.pambor@codewrights.de>
This commit is contained in:
Tim Pambor 2025-06-17 19:05:41 +02:00 committed by Anas Nashif
commit 3b90ed6122

View file

@ -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;