net: shell: Fix build with CONFIG_NET_BUF_VARIABLE_DATA_SIZE

The "net mem" command handler did not take the variable buffer length
configuration, and failed to build in such case.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2022-11-15 14:59:33 +01:00 committed by Anas Nashif
commit 98608b3c30

View file

@ -3657,7 +3657,11 @@ static int cmd_net_mem(const struct shell *shell, size_t argc, char *argv[])
net_pkt_get_info(&rx, &tx, &rx_data, &tx_data);
#if defined(CONFIG_NET_BUF_FIXED_DATA_SIZE)
PR("Fragment length %d bytes\n", CONFIG_NET_BUF_DATA_SIZE);
#else
PR("Fragment data pool size %d bytes\n", CONFIG_NET_BUF_DATA_POOL_SIZE);
#endif /* CONFIG_NET_BUF_FIXED_DATA_SIZE */
PR("Network buffer pools:\n");