diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index 11286c367..5540c66d8 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -279,7 +279,7 @@ static inline void net_statistics(FAR struct nsh_vtbl_s *vtbl) #ifdef CONFIG_NET_IPv4 nsh_output(vtbl, " IPv4"); #endif -#ifdef CONFIG_NET_IPv4 +#ifdef CONFIG_NET_IPv6 nsh_output(vtbl, " IPv6"); #endif #ifdef CONFIG_NET_TCP