From d65cb1fe12a8fbae94b9449dca131391481c10da Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Tue, 5 Dec 2023 17:53:50 +0800 Subject: [PATCH] shell: fix shell instance name typo Fixing typo from the original implementation in 44705b698c725166834f19d6fd5db2804f9a0d60, which resulted in the name of current shell instance getting print over and over again. Signed-off-by: Yong Cong Sin --- subsys/shell/shell_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/shell/shell_cmds.c b/subsys/shell/shell_cmds.c index 0932cd4adfc..b1a29799a88 100644 --- a/subsys/shell/shell_cmds.c +++ b/subsys/shell/shell_cmds.c @@ -231,7 +231,7 @@ static int cmd_backends(const struct shell *sh, size_t argc, char **argv) shell_print(sh, "Active shell backends:"); STRUCT_SECTION_FOREACH(shell, obj) { - shell_print(sh, " %2d. :%s (%s)", cnt++, obj->ctx->prompt, sh->name); + shell_print(sh, " %2d. :%s (%s)", cnt++, obj->ctx->prompt, obj->name); } return 0;