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:
parent
b054d162f2
commit
cc219c0132
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue