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:
parent
521341813e
commit
98608b3c30
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue