Skip to content

Commit 9daff84

Browse files
nhutnguyenkcjhedberg
authored andcommitted
drivers: eeprom: fm25xxx: Fix format warning
Use %zu for size_t to avoid build warning with arm64 compiler Signed-off-by: Nhut Nguyen <[email protected]>
1 parent dd9fec8 commit 9daff84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/eeprom/eeprom_fm25xxx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ int eeprom_fm25xxx_read(const struct device *dev, off_t offset, void *data, size
104104
sys_put_be24(offset, &read_op[1]);
105105
break;
106106
default:
107-
LOG_ERR("Invalid number of address bytes %u", addr_bytes);
107+
LOG_ERR("Invalid number of address bytes %zu", addr_bytes);
108108
return -EINVAL;
109109
}
110110

@@ -182,7 +182,7 @@ int eeprom_fm25xxx_write(const struct device *dev, off_t offset, const void *dat
182182
sys_put_be24(offset, &write_op[1]);
183183
break;
184184
default:
185-
LOG_ERR("Invalid number of address bytes %u", addr_bytes);
185+
LOG_ERR("Invalid number of address bytes %zu", addr_bytes);
186186
return -EINVAL;
187187
}
188188

0 commit comments

Comments
 (0)