From cc219c0132e31583ead7184c32d1af0283fb4637 Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Thu, 28 Sep 2023 18:37:15 +0200 Subject: [PATCH] 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 --- drivers/serial/serial_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_test.c b/drivers/serial/serial_test.c index b1661cdfeef..b1bb46228be 100644 --- a/drivers/serial/serial_test.c +++ b/drivers/serial/serial_test.c @@ -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;