net: tcp2: Fix format specifier

len is ssize_t variable type, %zd should be there.

Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
Ravi kumar Veeramally 2020-04-15 13:17:16 +03:00 committed by Jukka Rissanen
commit c655624f8a

View file

@ -393,7 +393,7 @@ static bool tcp_options_check(void *buf, ssize_t len)
continue;
} else {
if (len < 2) { /* Only END and NOP can have length 1 */
NET_ERR("Illegal option %d with length %d",
NET_ERR("Illegal option %d with length %zd",
opt, len);
result = false;
break;