Skip to content

Commit f4b24f9

Browse files
committed
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>
1 parent b3316fc commit f4b24f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/os/printk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ struct str_context {
210210
int count;
211211
};
212212

213-
static int str_out(int c, struct str_context *ctx)
213+
static int str_out(int c, void *context)
214214
{
215+
struct str_context *ctx = context;
215216
if ((ctx->str == NULL) || (ctx->count >= ctx->max)) {
216217
++ctx->count;
217218
return c;

0 commit comments

Comments
 (0)