drivers: eeprom: Fix splitting format string

Fix splitting format string to arguments.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2023-01-18 11:47:58 +02:00 committed by Anas Nashif
commit 4d2914c5c2

View file

@ -219,14 +219,14 @@ static int eeprom_mock_init(const struct device *dev)
eeprom_fd = open(eeprom_file_path, O_RDWR | O_CREAT, (mode_t)0600);
if (eeprom_fd == -1) {
posix_print_warning("Failed to open eeprom device file ",
posix_print_warning("Failed to open eeprom device file "
"%s: %s\n",
eeprom_file_path, strerror(errno));
return -EIO;
}
if (ftruncate(eeprom_fd, DT_INST_PROP(0, size)) == -1) {
posix_print_warning("Failed to resize eeprom device file ",
posix_print_warning("Failed to resize eeprom device file "
"%s: %s\n",
eeprom_file_path, strerror(errno));
return -EIO;