zephyr/subsys/net/lib/shell
Pisit Sawangvonganan 7b8a9e1818 net: shell: ensure the shell sh is valid before call shell_printf
It is possible that the `sh` was not set before use.
This change adds a NULL check for `sh` in the following macros:
PR, PR_SHELL, PR_ERROR, PR_INFO, and PR_WARNING.
In case `sh` is NULL, the above macros will call `printk` instead.

Fixes #68793

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-02-26 11:41:03 +00:00
..
allocs.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
arp.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
capture.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
CMakeLists.txt net: shell: Implement DHCPv4 server shell commands 2024-01-19 10:15:23 +00:00
conn.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
dhcpv4.c net: shell: Implement DHCPv4 server shell commands 2024-01-19 10:15:23 +00:00
dns.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
events.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
gptp.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
iface_dynamic.h net: shell: Fix array indexing with dynamic iface command 2023-11-20 09:24:47 +01:00
iface.c net: shell: Clarify the name of the virtual interface 2024-01-29 10:58:33 +00:00
ipv4.c net: shell: ipv4: Add command to set gateway 2024-02-26 11:53:56 +01:00
ipv6.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
mem.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
nbr.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
net_shell_private.h net: shell: ensure the shell sh is valid before call shell_printf 2024-02-26 11:41:03 +00:00
net_shell.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
net_shell.h
ping.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
pkt.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
ppp.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
resume.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
route.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
sockets.c net: shell: Make the thread name longer for sockets command 2024-01-18 20:13:31 +01:00
stats.c net: shell: Print more Ethernet statistics 2023-12-22 09:53:26 +01:00
suspend.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
tcp.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
udp.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
virtual.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
vlan.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00
websocket.c net: shell: Rename the common.h to be more unique 2023-12-13 20:13:39 +01:00