Skip to content

Commit ceb0d7d

Browse files
jukkarkrish2718
authored andcommitted
[nrf fromtree] wifi: shell: Add missing newlines when printing error
The parse_number() did not print newline after error or warning message. Signed-off-by: Jukka Rissanen <[email protected]> (cherry picked from commit 8105f70)
1 parent 553c19f commit ceb0d7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ static bool parse_number(const struct shell *sh, long *param, char *str,
125125
}
126126

127127
if (*endptr != '\0') {
128-
PR_ERROR("Invalid number: %s", str_tmp);
128+
PR_ERROR("Invalid number: %s\n", str_tmp);
129129
return false;
130130
}
131131

132132
if ((num) < (min) || (num) > (max)) {
133133
if (pname) {
134-
PR_WARNING("%s value out of range: %s, (%ld-%ld)",
134+
PR_WARNING("%s value out of range: %s, (%ld-%ld)\n",
135135
pname, str_tmp, min, max);
136136
} else {
137-
PR_WARNING("Value out of range: %s, (%ld-%ld)",
137+
PR_WARNING("Value out of range: %s, (%ld-%ld)\n",
138138
str_tmp, min, max);
139139
}
140140
return false;

0 commit comments

Comments
 (0)