Skip to content

Commit 86df662

Browse files
Jakub RzeszutkoMaureenHelm
authored andcommitted
shell: help feature improvement
Shell help printing function can now fully support CONFIG_CBPRINTF_NANO. Signed-off-by: Jakub Rzeszutko <[email protected]>
1 parent 6e18a63 commit 86df662

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/shell/shell_help.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ static void help_item_print(const struct shell *shell, const char *item_name,
116116
return;
117117
}
118118

119-
if (!IS_ENABLED(CONFIG_NEWLIB_LIBC) && !IS_ENABLED(CONFIG_ARCH_POSIX)) {
119+
if (!IS_ENABLED(CONFIG_NEWLIB_LIBC) &&
120+
!IS_ENABLED(CONFIG_ARCH_POSIX) &&
121+
!IS_ENABLED(CONFIG_CBPRINTF_NANO)) {
120122
/* print option name */
121123
shell_internal_fprintf(shell, SHELL_NORMAL, "%s%-*s%s:",
122124
tabulator,

0 commit comments

Comments
 (0)