drivers: serial: serial_test.c: Patch 64-bit incompat

The serial_test.c driver uses size_t to store read_size,
which becomes a 64-bit type when built for 64-bit
architectures. This is incompatible with the print
format %d which is 32-bit. Updated to %zd

Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
This commit is contained in:
Bjarki Arge Andreasen 2023-09-28 18:37:15 +02:00 committed by Anas Nashif
commit cc219c0132

View file

@ -404,7 +404,7 @@ static int serial_vnd_rx_enable(const struct device *dev, uint8_t *read_buf, siz
{
struct serial_vnd_data *data = dev->data;
LOG_WRN("read_size %d", read_size);
LOG_WRN("read_size %zd", read_size);
if (data == NULL) {
return -ENOTSUP;