Skip to content

Commit 69b8db2

Browse files
authored
Merge pull request #103 from tmobile/tmo-Fix-selitem-warning
Fix warnings in tmo-shell
2 parents 4ccfa44 + baea589 commit 69b8db2

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

samples/tmo_shell/src/tmo_shell.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int tcp_create_core(const struct shell *shell, size_t argc, char **argv, int fam
160160
{
161161
if (argc < 2){
162162
shell_error(shell, "Missing required arguments");
163-
z_shell_help_subcmd_print_selitem(shell);
163+
shell_help(shell);
164164
return -EINVAL;
165165
}
166166
int idx = strtol(argv[1], NULL, 10);
@@ -211,7 +211,7 @@ int tcp_create_tls_core(const struct shell *shell, size_t argc, char **argv, int
211211

212212
if (argc < 2){
213213
shell_error(shell, "Missing required arguments");
214-
z_shell_help_subcmd_print_selitem(shell);
214+
shell_help(shell);
215215
return -EINVAL;
216216
}
217217

@@ -282,7 +282,7 @@ int udp_create_core(const struct shell *shell, size_t argc, char **argv, int fam
282282
{
283283
if (argc < 2){
284284
shell_error(shell, "Missing required arguments");
285-
z_shell_help_subcmd_print_selitem(shell);
285+
shell_help(shell);
286286
return -EINVAL;
287287
}
288288
int idx = strtol(argv[1], NULL, 10);
@@ -336,7 +336,7 @@ int udp_create_dtls_core(const struct shell *shell, size_t argc, char **argv, in
336336
int ret = 0;
337337
if (argc < 2){
338338
shell_error(shell, "Missing required arguments");
339-
z_shell_help_subcmd_print_selitem(shell);
339+
shell_help(shell);
340340
return -EINVAL;
341341
}
342342

@@ -551,7 +551,7 @@ int sock_connect(const struct shell *shell, size_t argc, char **argv)
551551
{
552552
if (argc < 4){
553553
shell_error(shell, "Missing required arguments");
554-
z_shell_help_subcmd_print_selitem(shell);
554+
shell_help(shell);
555555
return -EINVAL;
556556
}
557557
int ret;
@@ -679,7 +679,7 @@ int sock_bind(const struct shell *shell, size_t argc, char **argv)
679679
{
680680
if (argc < 4){
681681
shell_error(shell, "Missing required arguments");
682-
z_shell_help_subcmd_print_selitem(shell);
682+
shell_help(shell);
683683
return -EINVAL;
684684
}
685685
int sd = strtol(argv[1], NULL, 10);
@@ -711,7 +711,7 @@ int sock_send(const struct shell *shell, size_t argc, char **argv)
711711
{
712712
if (argc < 3){
713713
shell_error(shell, "Missing required arguments");
714-
z_shell_help_subcmd_print_selitem(shell);
714+
shell_help(shell);
715715
return -EINVAL;
716716
}
717717

@@ -742,7 +742,7 @@ int sock_sendto(const struct shell *shell, size_t argc, char **argv)
742742
{
743743
if (argc < 5){
744744
shell_error(shell, "Missing required arguments");
745-
z_shell_help_subcmd_print_selitem(shell);
745+
shell_help(shell);
746746
return -EINVAL;
747747
}
748748

@@ -831,7 +831,7 @@ int sock_sendb(const struct shell *shell, size_t argc, char **argv)
831831
{
832832
if (argc < 3){
833833
shell_error(shell, "Missing required arguments");
834-
z_shell_help_subcmd_print_selitem(shell);
834+
shell_help(shell);
835835
return -EINVAL;
836836
}
837837

@@ -920,7 +920,7 @@ int sock_recvb(const struct shell *shell, size_t argc, char **argv)
920920
{
921921
if (argc < 3){
922922
shell_error(shell, "Missing required arguments");
923-
z_shell_help_subcmd_print_selitem(shell);
923+
shell_help(shell);
924924
return -EINVAL;
925925
}
926926

@@ -973,7 +973,7 @@ int sock_rcv(const struct shell *shell, size_t argc, char **argv)
973973
{
974974
if (argc < 2){
975975
shell_error(shell, "Missing required arguments");
976-
z_shell_help_subcmd_print_selitem(shell);
976+
shell_help(shell);
977977
return -EINVAL;
978978
}
979979
int sd = (int)strtol(argv[1], NULL, 10);
@@ -1017,7 +1017,7 @@ int sock_rcvfrom(const struct shell *shell, size_t argc, char **argv)
10171017
{
10181018
if (argc < 2){
10191019
shell_error(shell, "Missing required arguments");
1020-
z_shell_help_subcmd_print_selitem(shell);
1020+
shell_help(shell);
10211021
return -EINVAL;
10221022
}
10231023
int sd = (int)strtol(argv[1], NULL, 10);
@@ -1068,7 +1068,7 @@ int sock_close(const struct shell *shell, size_t argc, char **argv)
10681068
{
10691069
if (argc < 2){
10701070
shell_error(shell, "Missing required arguments");
1071-
z_shell_help_subcmd_print_selitem(shell);
1071+
shell_help(shell);
10721072
return -EINVAL;
10731073
}
10741074
int sd = strtol(argv[1], NULL, 10);
@@ -1103,7 +1103,7 @@ int sock_sendsms(const struct shell *shell, size_t argc, char **argv)
11031103

11041104
if (argc != 4){
11051105
shell_error(shell, "Missing required arguments");
1106-
z_shell_help_subcmd_print_selitem(shell);
1106+
shell_help(shell);
11071107
return -EINVAL;
11081108
}
11091109

@@ -1134,7 +1134,7 @@ int sock_recvsms(const struct shell *shell, size_t argc, char **argv)
11341134

11351135
if (argc != 3){
11361136
shell_error(shell, "Missing required arguments");
1137-
z_shell_help_subcmd_print_selitem(shell);
1137+
shell_help(shell);
11381138
return -EINVAL;
11391139
}
11401140

@@ -1492,7 +1492,7 @@ int cmd_http(const struct shell *shell, size_t argc, char **argv)
14921492
shell_error(shell, "Missing required argument");
14931493
shell_print(shell, "Usage: tmo http <devid> <URL> <file (optional)>\n"
14941494
" devid: 1 for modem, 2 for wifi\n");
1495-
z_shell_help_subcmd_print_selitem(shell);
1495+
shell_help(shell);
14961496
return -EINVAL;
14971497
}
14981498

@@ -1744,7 +1744,7 @@ int cmd_dfu_set_iface(const struct shell *shell, size_t argc, char **argv)
17441744
{
17451745
if (argc < 2){
17461746
shell_error(shell, "Missing required arguments");
1747-
z_shell_help_subcmd_print_selitem(shell);
1747+
shell_help(shell);
17481748
return -EINVAL;
17491749
}
17501750
int idx = strtol(argv[1], NULL, 10);
@@ -2309,7 +2309,7 @@ int cmd_json_set_iface(const struct shell *shell, size_t argc, char **argv)
23092309
{
23102310
if (argc < 2) {
23112311
shell_error(shell, "Missing required arguments");
2312-
z_shell_help_subcmd_print_selitem(shell);
2312+
shell_help(shell);
23132313
return -EINVAL;
23142314
}
23152315
int idx = strtol(argv[1], NULL, 10);
@@ -2326,7 +2326,7 @@ int cmd_json_transmit_interval(const struct shell *shell, size_t argc, char **ar
23262326
{
23272327
if (argc < 2) {
23282328
shell_error(shell, "Missing required arguments");
2329-
z_shell_help_subcmd_print_selitem(shell);
2329+
shell_help(shell);
23302330
return -EINVAL;
23312331
}
23322332
int secs = strtol(argv[1], NULL, 10);

samples/tmo_shell/src/tmo_wifi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ int cmd_wifi_connect(const struct shell *shell, size_t argc,
284284

285285
if (argc < 2){
286286
shell_error(shell, "Missing required arguments");
287-
z_shell_help_subcmd_print_selitem(shell);
287+
shell_help(shell);
288288
return -EINVAL;
289289
}
290290
int idx = strtol(argv[1], NULL, 10);
@@ -333,7 +333,7 @@ int cmd_wifi_disconnect(const struct shell *shell, size_t argc,
333333
{
334334
if (argc < 2){
335335
shell_error(shell, "Missing required arguments");
336-
z_shell_help_subcmd_print_selitem(shell);
336+
shell_help(shell);
337337
return -EINVAL;
338338
}
339339
int idx = strtol(argv[1], NULL, 10);
@@ -384,7 +384,7 @@ int cmd_wifi_scan(const struct shell *shell, size_t argc, char *argv[])
384384
// struct net_if *iface = net_if_get_default();
385385
if (argc < 2){
386386
shell_error(shell, "Missing required arguments");
387-
z_shell_help_subcmd_print_selitem(shell);
387+
shell_help(shell);
388388
return -EINVAL;
389389
}
390390
int idx = strtol(argv[1], NULL, 10);
@@ -423,7 +423,7 @@ int cmd_wifi_status(const struct shell *shell, size_t argc, char *argv[])
423423
// struct net_if *iface = net_if_get_default();
424424
if (argc < 2){
425425
shell_error(shell, "Missing required arguments");
426-
z_shell_help_subcmd_print_selitem(shell);
426+
shell_help(shell);
427427
return -EINVAL;
428428
}
429429
int idx = strtol(argv[1], NULL, 10);
@@ -512,7 +512,7 @@ int cmd_wifi_mac(const struct shell *shell, size_t argc, char *argv[])
512512
// struct net_if *iface = net_if_get_default();
513513
if (argc < 2){
514514
shell_error(shell, "Missing required arguments");
515-
z_shell_help_subcmd_print_selitem(shell);
515+
shell_help(shell);
516516
return -EINVAL;
517517
}
518518
int idx = strtol(argv[1], NULL, 10);

0 commit comments

Comments
 (0)